(A) Public
(B) Private
(C) Protected
(D) none of the given options
Category: Object Oriented Programming Mcqs
Object Oriented Programming OOP Mcqs for Screening tests, Interviews, Viva and Other competitive exams. Object Oriented Programming Mcqs section will help users to prepare mcqs of OOP for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their Object Oriented programming portion from here.
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
Destructor can be overloaded:
(A) True
(B) False
(C) NA
(D) NA
aphical representation of the classes and objects is called object model it shows __.
(A) Class Name only
(B) Class Name and attributes
(C) Relationships of the objects and classes
(D) all of the given
__ follow try block to catch the object thrown.
(A) catch block
(B) throw block
(C) main block
(D) non of the given