7 years ago in C++ Inheritance

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

Overall Stats

Attempted 250
Correct 19
Incorrect 31
Viewed 200

Answers

Guest
Guest
Ayesha Waheed - 4 years ago

D. A is wrong because the base class member can be assessed by the derived class not its objects. This is the same for B. And base class objects can never access derived class members.

Baby Devi
Baby Devi - 1 day ago

Baby Devi is saying The derived class members can be accessed by the base class objects is correct answer

saksham srivastava
saksham srivastava - 1 day ago

saksham srivastava is saying The derived class members can be accessed by the base class objects is correct answer

vasundhara gour
vasundhara gour - 1 day ago

vasundhara gour is saying The base class member can be accessed by derived class objects is correct answer

Kabir Sharma
Kabir Sharma - 1 day ago

Kabir Sharma is saying None of above is correct answer

Related Questions

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

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

Which of the following is false with respect to inheritance?

  • [A] When a base class is privately inherited,public members of the base class become private members of the derived class
  • [B] When a base class is publicly inherited,public members of the base class becomes public members of derived class
  • [C] When a base class is privately inherited,a private member of base class becomes private member of derived class
  • [D] When a base class is publicly inherited protected members of base class becomes protected members of derived class

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