What is the syntax of inheritance of class

By Rebecca
1 Min Read

What is the syntax of inheritance of class?

(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) class derived_classname : access base_classname{ /*define class body*/ };

What is the syntax of inheritance of class

Read more: A bay window is a multi panel window which

By Rebecca
Follow:
Rebecca is an Independent content writer for breldigital, She writes content on any given topic. She loves to write a case study article or reviews on a brand, Be it any topic, she nails it