beginnerOOP Fundamentals for LLD
What is the difference between IS-A and HAS-A relationships? Give design examples.
Tests whether you know when inheritance is appropriate versus when composition is the better design choice.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
What is the difference between IS-A and HAS-A relationships? Give design examples.