In OOP, is it possible to have a class that inherits from multiple other classes? And if yes, how is this situation called?
For example, suppose I have the following classes:
Eye
Nose
Mouth
Eyebrow
Ear
Hair
Skin
Now I want to have a class called Face
which should inherit or depend on all these classes to make a Face
object. In other words I want to assemble many classes into one class.
Face
should have membersEye
,Nose
, etc. but not actually implement them. – Dan Wilson Oct 10 '18 at 19:57Face
to be a container for all the other things, not a subclass. – BgrWorker Oct 11 '18 at 15:57