(A) Age
(B) Name
(C) Work()
(D) Both Name and Age
Tag: Object Oriented Programming
The members of a class that can be accessed without creating the object of the class is called?
(A) Private member
(B) Public member
(C) Data member
(D) Static
A class can be identified from a statement by?
(A) Noun
(B) Pronoun
(C) Verb
(D) Adverb
Identify which of the following overloaded operator function‘s declaration is appropriate for the given call? Rational_number_1 + 2.325 Where Rational_number_1 is an object of user defined class Rational_number?
(A) Rational_number operator+( Rational_number & obj);
(B) Rational_number operator+(double& obj);
(C) Rational_number operator+(Rational_number &obj, double& num);
(D) operator+(double& obj);
In OOP a class is an example of __.
(A) Abstract Type
(B) Data Type
(C) User Defined Type
(D) None of the above
A generalization-specialization relation between classes are implemented using?
(A) Friend classes
(B) Data hiding
(C) Encapsulation
(D) Inheritance
An overloaded operator always requires one less argument than its number of operands.
(A) True
(B) False
Which operator can not be overloaded?
(A) The relation operator ( >= )
(B) Assignment operator ( = )
(C) Script operator ( [] )
(D) Conditional operator (? : )