(MCT 212) Advanced Programming Bonus Assignment: Eng. Nour Mandour Good Luck
(MCT 212) Advanced Programming Bonus Assignment: Eng. Nour Mandour Good Luck
(MCT 212) Advanced Programming Bonus Assignment: Eng. Nour Mandour Good Luck
Bonus Assignment
1. When the inheritance is private, the private methods in base class are
__________ in the derived class (in C++).
A. Inaccessible
B. Accessible
C. Protected
D. Public
6. The friend functions and the member functions of a friend class can
directly access the______________ data.
A. Private and protected
B. Private and public
C. Protected and public
D. Private, protected and public
A. Polymorphism
B. Encapsulation
C. Inheritance
D. Both A and C
9. Which constructor will be called from the object obj2 in the following
C++ program?
a) A(int y, int x)
b) A(int y; int x)
c) A(int y)
d) A(int x)