HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Python also has a super()
function that
will make the child class inherit all the methods and properties from its
parent:
class Student(Person):
def __init__(self, fname, lname):
super().__init__(fname, lname)
By using the super()
function, you do not
have to use the name of the parent element, it will automatically inherit the
methods and properties from its parent.