Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

Recently i was appear for an interview and interviewer ask me one question that Why to use Inheritance we can achieve the same thing by creating the object of one class into another class, and by doing so we can access all the methods of one class into another.

if any one know the exact answer that what unique thing we can achieve by Inheritance and which is not possible by declaring object one one class into another then plz share
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900