Java Programming

What is different between inheritance and encapsulation?

Answer

Wiki User
04/15/2012

They are both two totally different concepts. Encapsulation is about hiding implementation details whereas Inheritance is about re-using code.