7 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 113
Correct 21
Incorrect 34
Viewed 58

Answers

Guest
Guest
Karthik Panyam - 4 years ago

private members of base class are not inherited

Yashankita Deshmukh
Yashankita Deshmukh - 3 weeks ago

Yashankita Deshmukh is saying We can specify which data and function members of base class will be inherited by derived class is correct answer

Koti Bandla
Koti Bandla - 4 weeks ago

Koti Bandla is saying In an inheritance, all data and function members of base class are derived by derived class is correct answer

Sameer sinha
Sameer sinha - 1 month ago

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

Blank OP
Blank OP - 4 years ago

Blank OP from Bacolod City, Philippines is saying We can add new functions to derived class without recompiling the base class is correct answer

Related Questions

Which symbol is used to create multiple inheritance?

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

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

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

A base class will offer

  • [A] offer more specific objects than its derived classes
  • [B] correspond to something in the rest world
  • [C] behave badly when the chops are down
  • [D] be a generalized version of its derived classes

The conversion from basic data to class type can be done by .......

  • [A] Writing constructor
  • [B] Is not possible
  • [C] overloaded casting operator
  • [D] object of a class