How the information hidden within an object can be
accessed?
setter and getter
Through
its interface
by member functions
Through its private member functions
In inheritance, a child class is a sub-type of base
class.
True
False
Aggregation is implemented using pointer.
True
False
Main characteristic of information hiding is:
Limited
access
Unlimited access
Keep the model interesting
Keep the model simple
Suppose "Cat" is a real world object that you
want to transform into programming entity. For this, which of the following
concepts would you use?
Class
Function
State
Behavior
Which of the following is/are the integral part of an object?
State
Behavior
Unique identity
All
of given
When we create objects, then space is allocated to:
Member functions
Access specifier
Data
members
None of the given
If a class involves dynamic memory allocation, then:
Default copy constructor, shallow copy is implemented
User
defined copy constructor, shallow copy is implemented
Default copy constructor, deep copy is implemented
User defined copy constructor, deep copy is implemented
We can choose any arbitrary name for a constructor.
True
False
How many objects of a given class may be constructed in
an application?
Only one per constructor.
As
many as the application asks for
Only one per class
Comments
Post a Comment
Please give us your feedback & help us to improve this site.