Computer Science, asked by sriya2806, 11 months ago

What kind of relationship exists between inherited class and base class?

Answers

Answered by Anonymous
7

Answer:

✍️A class can inherit attributes and behaviour methods from another class, called the superclass. A class which inherits from a superclass is called a subclass, also called heir class or child class. Superclasses are sometimes called ancestors as well. There exists a hierarchy relationship between classes.

✳️✳️✳️✳️✳️✳️✳️✳️✳️✳️✳️✳️✳️

✍️Inheritance (is-a) relationships are derived child classes that inherit attributes and methods from their parent class. Composition (has-a) relationships are classes whose attributes are comprised of other classes. Each relationship has its advantages and disadvantages.

✔️Hope it will be helpful.✔️

Answered by StaceeLichtenstein
0

Inheritance is the correct answer to the given question

Explanation:

  • The process of describing the new class i.e "inherited class"  from the old class i.e "base class" is known as the concept of inheritance. They are oops features in any object-oriented programming language  
  • The main advantage of inheritance it provided the reusability feature it means only one time writing the code and use many times with the help of the inheritance concept.
  • There are many types of inheritance which are given below
  1. Single level    
  2. Multilevel
  3. multiple
  4. hybrid
  5. hierarchical

Learn More:

  • https://brainly.in/question/5335071
Similar questions