troubleshooting Question

Abstract Method vs Derived Method

Avatar of Michael Reeve
Michael ReeveFlag for United States of America asked on
C#
2 Comments1 Solution432 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros