Net-informations.com
SiteMap  | About    

Inheritance in Python

A class can inherit attributes and behaviour methods from another class, called the superclass . A class which inherits from a superclass is called a subclass , also called heir class or child class. Inheritance enable us to define a class that takes all the functionality from parent class and allows us to add more.

example









net-informations.com (C) 2017    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.