Question: 1. Discuss the difference between inheritance and composition. What are the advantages and disadvantages of each? Can you implement one with the other? 2.How is
1. Discuss the difference between inheritance and composition. What are the advantages and disadvantages of each? Can you implement one with the other?
2.How is a class similar to a database table? How is it different? How do these similarities and differences justify the need for class models and for data models? Or do they?
3.Discuss the difference between association and composition. What are the advantages and disadvantages of each?
4.When would you apply inheritance? When would you not? Provide examples
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
