Link to home
Start Free TrialLog in
Avatar of MuhammadAdil
MuhammadAdilFlag for Pakistan

asked on

What is importance of Abstract Classes

Hello Experts

What is importace of Abstract Classes
What are adventages to use abstract classes
ASKER CERTIFIED SOLUTION
Avatar of PoeticAudio
PoeticAudio

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PoeticAudio
PoeticAudio

Also notice that you can create whatever methods in your derrived classes... like you could make Dog have a fetch method, it will still run through the MakeAnimalSpeak method just fine, but you cant make a MakeAnimalFetch method because the bird doesn't have a fetch method... you could make a MakeDogFetch method and have classes derrive from Dog... like Chow, Doberman...etc run through the method fine as long as you mark the Fetch method as virtual.