Question: A student claims that even though encapsulation is an accepted OOP practice it cannot be properly implemented in Java with inheritance because inherited classes get
A student claims that even though encapsulation is an accepted OOP practice it cannot be properly implemented in Java with inheritance because inherited classes get access to data elements of the parent class. This is True because encapsulation and inheritance cannot be implemented together True because you have to have third party libraries to implement encapsulation and inheritance together in Java O False, because neither inheritance nor encapsulation can be implemented in Java OFalse because both inheritance and encapsulation can be implemented in Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
