5 years ago in C++ Inheritance

Which of the following is/are false

[A] Inheritance is deriving new class from existing class
[B] In an inheritance, all data and function members of base class are derived by derived class
[C] We can specify which data and function members of base class will be inherited by derived class
[D] We can add new functions to derived class without recompiling the base class
Loading...
Next Question

Overall Stats

Attempted 189
Correct 45
Incorrect 55
Viewed 89

Answers

Guest
Guest
Karthik Panyam - 3 years ago

private members of base class are not inherited

Jai
Jai - 3 weeks ago

Jai is saying We can add new functions to derived class without recompiling the base class is correct answer

Deep
Deep - 1 month ago

Deep from Kolkata, India is saying We can add new functions to derived class without recompiling the base class is correct answer

Priya
Priya - 1 month ago

Priya from Hyderabad, India is saying We can specify which data and function members of base class will be inherited by derived class is correct answer

Laya Reddy Nomula
Laya Reddy Nomula - 2 months ago

Laya Reddy Nomula is saying Inheritance is deriving new class from existing class is correct answer

Related Questions

Choose most appropriate statement

  • [A] An abstract base class can have pure virtual destructor
  • [B] An abstract base class can have only virtual destructor
  • [C] An abstract base class can have non virtual destructor
  • [D] An abstract base class cannot have destructor

If a base class member access is public, and an inherited class accesses specifier is private, which of the following statement is true ?

  • [A] The base class member can be accessed by derived class objects
  • [B] The base class members cannot be accessed by the derived class members
  • [C] The derived class members can be accessed by the base class objects
  • [D] None of above

When a base class pointer points to derived class object?

  • [A] It can access only base class members
  • [B] It can access only derived class members
  • [C] Both base class & derived class members
  • [D] None

Which symbol is used to create multiple inheritance?

  • [A] Dot
  • [B] Comma
  • [C] Dollar
  • [D] None of the mentioned