What is the difference between inheritance and encapsulation?
Anonymous
Inheritance vs. encapsulation: not related except both commonly found in OO languages. • Inheritance: IS-A relationship that extends by specializing in subclasses • Encapsulation is information-hiding in a class. Outside world is ignorant of implementation, only class/objects know and manipulate details.
Check out your Company Bowl for anonymous work chats.