Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
What is proper and improper inheritance? Explain with an example?
Profile Answers by tanish Questions by tanish
Questions by tanish
Editorial / Best Answer
michaelpylesProfile Answers by michaelpyles Questions by michaelpyles
Proper inheritance occurs when the derived class "IS A" specialized type of the base class. Example Cat IS A Animal.
Improper inheritance occurs when a class is inherited from merely for code reuse, without having any other relationship. Example Cat Inherits from Engine. A Cat is not an engine however both an engine and a cat purr.
Related Answered Questions
Related Open Questions