Multiple choice

A person creates a class with the name 'A' in C++. He wishes to use the features of this class in class B. Which syntax will he use to implement this?

  1. class B:public/protected/private A

  2. class B inherits class A

  3. class B extends A

  4. class B:class A

  5. class B inherited A

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

He may use the syntax given below: class name:access specifier classname