7 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 93
Correct 10
Incorrect 33
Viewed 50

Answers

Guest
Guest
Blank OP
Blank OP - 4 years ago

Blank OP from Bacolod City, Philippines is saying It can access only base class members is correct answer

Mursaleen khalid
Mursaleen khalid - 4 years ago

Mursaleen khalid from Islamabad, Pakistan is saying Both base class & derived class members is correct answer

Neyah Deshmukh
Neyah Deshmukh - 4 years ago

Neyah Deshmukh from India is saying Both base class & derived class members is correct answer

Shiny Bhatnagar
Shiny Bhatnagar - 4 years ago

Shiny Bhatnagar from New Delhi, India is saying Both base class & derived class members is correct answer

Bhawna wadhwa
Bhawna wadhwa - 4 years ago

Bhawna wadhwa from India is saying It can access only derived class members is correct answer

Related Questions

Which design patterns benefit from the multiple inheritance?

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

what is Hybrid Inheritance?

  • [A] multiple inheritance
  • [B] multilevel inheritance
  • [C] multipath inheritance
  • [D] combination of a and b
  • [E] combination of a and c

Which symbol is used to create multiple inheritance?

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

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

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