Which is the correct syntax of inheritance?
A. class derived_classname : base_classname{ /*define class body*/ };
B. class base_classname : derived_classname{ /*define class body*/ };
C. class derived_classname : access base_classname{ /*define class body*/ };
D. class base_classname :access derived_classname{ /*define class body*/ };
Answer:C
Which is the correct syntax of inheritance?
A. class derived_classname : base_classname{ /*define class body*/ }; B. class base_classname : derived_classname{ /*define class body*/ }; C. class derived_classname : access base_classname{ /*define class body*/ }; D. class base_classname :access derived_classname{ /*define class body*/ };