6 years ago in C++ Inheritance

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
Loading...
Next Question

Overall Stats

Attempted 184
Correct 25
Incorrect 67
Viewed 92

Answers

Guest
Guest
Sadia
Sadia - 4 weeks ago

Sadia is saying Both base class & derived class members is correct answer

Rudta Resedr
Rudta Resedr - 7 months ago

Rudta Resedr is saying None is correct answer

Deep
Deep - 9 months ago

Deep from Kolkata, India is saying It can access only derived class members is correct answer

Zunaira jafar
Zunaira jafar - 10 months ago

Zunaira jafar from Hafizabad, Pakistan is saying Both base class & derived class members is correct answer

Mohamed Ibrahim
Mohamed Ibrahim - 11 months ago

Mohamed Ibrahim from Palestine is saying It can access only derived class members 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

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

Which symbol is used to create multiple inheritance?

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

Which design patterns benefit from the multiple inheritance?

  • [A] Adapter and observer pattern
  • [B] Code pattern
  • [C] Glue pattern
  • [D] None of the mentioned