(A) True
(B) False
(C) NA
(D) NA
Tag: OOP Mcqs
be of type Public Private Protected All of the given D 130 When a subclass specifies an alternative definition for an attribute or method of its superclass, it is __ the definition in the superclass.
(A) overload
(B) overriding
(C) copy riding
(D) none of given
Multiple inheritance can be of type?
(A) Public
(B) Private
(C) Protected
(D) All of the given
Consider the code below, class class1{ protected: int i; }; class class2 : public class1 { }; Then int member I of class1 is __ in class2.
(A) Public
(B) Private
(C) Protected
(D) none of the given options
In Public Inheritance the public members of base class become __ in derived class.
(A) Public
(B) Private
(C) Protected
(D) none of the given options
Consider the code below, class class1{ private: int i; }; class class2 : protected class1 { }; Then int member I of class1 is __ in class2,.
(A) Public
(B) Private
(C) Protected
(D) none of the given options
Consider the code below, class class1{ private: int i; }; class class2 : protected class1 { }; Then int member I of class1 is __ in class2,?
(A) Public
(B) Private
(C) Protected
(D) none of the given options
Outside world can access only __ members of a class using its object.
(A) Public
(B) Private
(C) Protected
(D) No member is accessible