a) Briefly describe the following two OOP concepts using suitable examples and class diagrams if necessary:

Question

i. encapsulation;

ii. inheritance.

b) Explain the three concepts, constructors, default constructors and constructor chaining (overloading) in Java.

c) Define class and instance variables and methods, highlighting the differences between them.

Leave an answer

Sorry, you do not have permission to answer to this question .