Q:

Which is the correct syntax of inheritance?

0

Which is the correct syntax of inheritance?


  1. class derived_classname : base_classname{ /*define class body*/ };
  2. class base_classname : derived_classname{ /*define class body*/ };
  3. class derived_classname : access base_classname{ /*define class body*/ };
  4. class base_classname :access derived_classname{ /*define class body*/ };

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(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

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now