Michael Reeve
asked on
Abstract Method vs Derived Method
Experts,
Up front, my question indirectly (not directly) has to do with some homework I am working on. By answering you are not answering the homework question, rather it just helps me have a understanding of the concepts . That being said...
I am wondering why use an method inside a abstract class thus having the deriving class inherit and provide the implementation for the method, rather than just having the derived class use its own method to perform a necessary task. What are the advantages of placing the method (abstract) in the abstract class? My first thought would be that it would provide consistence for the inheriting class. Any additional thoughts?
Up front, my question indirectly (not directly) has to do with some homework I am working on. By answering you are not answering the homework question, rather it just helps me have a understanding of the concepts . That being said...
I am wondering why use an method inside a abstract class thus having the deriving class inherit and provide the implementation for the method, rather than just having the derived class use its own method to perform a necessary task. What are the advantages of placing the method (abstract) in the abstract class? My first thought would be that it would provide consistence for the inheriting class. Any additional thoughts?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER