Python Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 17)
17.
What is the difference between composition and inheritance?
Answer: Option
Explanation:
Inheritance is the mechanism by which one class can inherit attributes and methods from another class, while composition involves containing objects of other classes within a class.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers