Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@SGrigorov then help me out of my misery and tell me what's funny about some stupid OOP tutorial "joke"
-
52cal4977y@Krokoklemme It’s ironic because most tutorials use Animals when describing OOP. Here we have a specific example where we can use that information. It’s like what SheShell said above.
-
@52cal I understand that much, I just don't see where it's supposed to be funny
Just not my humor, I guess -
@SGrigorov Ah, I was never too familiar with C#. The 'public class' looked like Java to me 😅
-
It's ironic because this would be a terrible way to actually design such a system.
-
-vim-31257y@DuckyMcDuckFace Yeah it would be better just to do a classification by clients and store it some kinds of way
-
beriba8557yThis would be a bad design because you don't know all the animals that will come to the veterinary center. And you don't want to spend a whole month creating all the classes extending Animal. All types of animals should be placed in a database. There must be an easy way to add new records.
So no, that day won't come. Ever. -
how about...
class Animal {
string genus; // e.g. Felis
string specificName; // e.g. catus
}
no need to create lots of classes
Related Rants
Waiting for this day....
joke/meme
funny