Question 8

Name the type of Inheritance if Activity, Teacher and SUPW are C++ Classes and → denotes inheritance.

Name the type of Inheritance if Activity, Teacher and SUPW are C++ Classes and → denotes inheritance. Activity ↓ Teacher ↓ SUPW
  1. AMulti Level Inheritance
  2. BMultiple Inheritance
  3. CSingle Level Inheritance
  4. DHybrid Inheritance
Show answerHide answer

Correct answer: (A) Multi Level Inheritance

Explanation

Teacher inherits from Activity, and SUPW inherits from Teacher. A chain of single inheritance like this is multilevel inheritance.

From DSSSB TGT Computer Science Practice Set 2

This is question 8 of DSSSB TGT Computer Science Practice Set 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.