Skip to main content

37 posts tagged with "Tutorial"

View All Tags

OOP: Inheritance

Subclasses, Method Overriding, and super()

· 3 min read

In the previous unit, we explored methods and the difference between class and instance variables. Now let's look at inheritance, which lets a class inherit attributes and methods from another class.

OOP: Inheritance

OOP: Methods and Variables

Constructor, Instance Methods, and Class vs Instance Variables

· 3 min read

In the previous unit, we introduced classes and objects. Now let's dig deeper into methods, functions that live inside classes, and understand the difference between class variables and instance variables.

OOP: Methods and Variables