This is the lesson number 03 of the lesson series on Object Oriented Programming (OOP) in Python. It will be a complete course with the aim is to cover almost everything needed in Object Oriented Programming.
In this lesson we will talk about the class level attributes. We will see how different objects or instances can access class level attributes.
Link to complete playlist:
• Object-Oriented Programming in Python
Lesson Code:
https://github.com/MAN1986/OOP-in-Pyt...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Review Questions of the Lesson
1. At 01:10 , department attribute is accessed for two student objects and is returned correctly. Can we access it for class rather than a specific object? How will we do that?
2. If subject MOM is repeated in the original offSubjects list as:
offSubjects=['Mech','LA','ES','CP-II','MOM', 'MOM','Proj']
At 04:35 will MOM be added two time?
#OOP #ObjectOrientedProgramming #Python