Python Programming - Classes - Discussion
Discussion Forum : Classes - General Questions (Q.No. 5)
5.
How can you inherit a class?
Answer: Option
Explanation:
In Python, class inheritance is achieved by placing the name of the parent class in parentheses after the name of the child class. This creates a relationship where the child class inherits attributes and methods from the parent 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