C
C#2y ago
Triufelis

✅ Printing abstract classes

I have an abstract class and two classes that inherit from it. Let's say the abstract one is Animal and the two other are cat and dog. they all have some parameters that are the same, but some are different. I store both of them in an Animals container class(combined into one). I need to figure out how to print the animal with all its data depending on the class that inherited the animal class.
1 Reply
Accord
Accord2y ago
Closed!
Want results from more Discord servers?
Add your server