Which of the following means "The use of an object of one class in definition of another class"?
A.Encapsulation
B.Inheritance
C.Composition
D.Abstraction
Answers
Answered by
0
ʜᴇʟʟᴏ ᴅᴇᴀʀ...❤❤❤❤❤
ᴄᴏʀʀᴇᴄᴛ ᴀɴꜱᴡᴇʀ..✔✔✔✔✔✔
ᴄ. ᴄᴏᴍᴩᴏꜱɪᴛɪᴏɴ
❤❤❤❤❤❤❤❤❤
ᴄᴏʀʀᴇᴄᴛ ᴀɴꜱᴡᴇʀ..✔✔✔✔✔✔
ᴄ. ᴄᴏᴍᴩᴏꜱɪᴛɪᴏɴ
❤❤❤❤❤❤❤❤❤
Answered by
0
The right answer to this question is option C) Composition.
Explanation:
The composition is a unique item of combination. In simple words, an object or item cannot exist in the absence of another item or object is entitled as composition. As a result, a particular object contains another object as well.
For instance, a class comprises of students. In this case, a class cannot exist without students. Therefore, this indicates exists of composition between students and class.
Similar questions