+ 1
How you can relate Rose to OOPS.
this question asked by interviewer. i was like 👍🙄
1 Odpowiedź
+ 1
take garden is a class and it has a fuction flowers and flowers has a fuction rose .(inheritance)
rose is derived from flower and flower is derived from the garden.
rose has different property like fragrance.(abstraction)
and also it has layer by layer if combine (encapsulation).
different different flower has its own property so u can relate with (polymorphism).
plzz give me reviews.