NEW
Font size
WorksheetsDesign Pattern - 1
Total questions: 10
Worksheet time: 3mins
Db, Encrypter and Person was the example of:
Composition
Association
Aggregation
Dependency
Association is:
One object depends on other
First object uses second and second uses first
Both 2 and 3
None of above
Brain and Body was example of:
Composition
Association
Aggregation
Inheritance
Car and Engine is the example of :
Composition
Association
Aggregation
Inheritance
Doctor and a patient is an example of:
Composition
Association
Inheritance
Aggregation
Inheritance commonly known as
"is a" relationship
"has a" relationship
"dependency" relationship
None of above
Association is:
One to Many relationship
Many to one relationship
Many to many relationship
None of above
Types of inheritance are:
Public
Private
Protected
All of above
Aggregation is commonly known as:
"is a" relationship
"has a" relationship
"dependency" relationship
None of above
Which of the following is only in C++
mutable
friend
encapsulation
constant
