We help IT Professionals succeed at work.

Abstract Method vs Derived Method

Michael Reeve
on
428 Views
Last Modified: 2012-02-07
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?
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2015
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thank you for a comprehensive, clearly written answer to my question. Your answer has helped me grasp some basic concepts. Really appreciate it! Thank you.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.