0 votes
in JAVA by
Select the best from following refers to using the existing code instead of rewriting it?

(i) Inheritance

(ii) Encapsulation

(iii) Abstraction

(iv) Both A and B

1 Answer

0 votes
by

(i) Inheritance

The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one of the most important feature of Object Oriented Programming.

Sub Class: The class that inherits properties from another class is called Sub class or Derived Class.

Super Class:The class whose properties are inherited by sub class is called Base Class or Super class.

Related questions

0 votes
asked Jan 24, 2021 in JAVA by rajeshsharma
0 votes
asked Jan 24, 2021 in JAVA by rajeshsharma
...