Which Is The Correct Syntax Of Inheritance #711
Which is the correct syntax of inheritance?
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 Inheritance & its Types - OOPs MCQ: Inheritance - Quiz No.1.
Which is the correct syntax of inheritance?
class derived_classname : base_classname{ /*define class body*/ };
class base_classname : derived_classname{ /*define class body*/ };
class derived_classname : access base_classname{ /*define class body*/ };
class base_classname :access derived_classname{ /*define class body*/ };