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*/ };
(c).class derived_classname : access base_classname{ /*define class body*/ };
need an explanation for this answer? contact us directly to get an explanation for this answer