© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ C# abstract classes & interfaces
C#CC# / help
3y ago
✅ Abstract classes as the WPF DesignContext?
C#CC# / help
3y ago
✅ Working with abstract classes in a homework problem
C#CC# / help
5mo ago
Any good guides/videos to learn Abstract Classes?
C#CC# / help
11mo ago