JAVA Q: Aggregation is different from composition in that: a.) an object B that
ID: 3752917 • Letter: J
Question
JAVA
Q: Aggregation is different from composition in that:
a.) an object B that is contained in an aggregate object A cannot outlive A.
b.) no objects contained in an aggrgate object A may be used outside A.
c.) no objects contained in an aggrgate object A may outlive A.
d.) they are not different.
e.) an object B that is contained in an aggregate object A may outlive A.
Q: Information hiding in the context of object-oriented programming in JAVA refers to
a.) making all data members public.
b.) putting data members inside methods.
c.) making all methods of a class have a void return type.
d.) making data members private and accessbile through methods.
e.) making all methods of a class private.
Explanation / Answer
Q: Aggregation is different from composition in that:
e.) an object B that is contained in an aggregate object A may outlive A.
____________
Q: Information hiding in the context of object-oriented programming in JAVA refers to
Ans) d.) making data members private and accessbile through methods.
__________Thank You
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.