Python Classes - Class and Instance Object Types and Attributes - Easy Code Examples - APPFICIAL

Опубликовано: 14 Октябрь 2024
на канале: Appficial
1,588
20

Programs with user-defined classes can contain 2 types of objects:
Class object – used to create instance objects
Instance object – an instance of the class object

There can also be 2 types of attributes:
Class attribute – shared by all instances of the class
Instance attribute – unique to each class instance

Subscribe to Appficial for more programming videos coming soon. Also, don't forget to click LIKE and comment on the video if it helped you out!