[PYH 18] Class and object (Part 1), constructor, Types of Variables, Types of Methods [Hindi]
HTML-код
- Опубликовано: 4 ноя 2024
- Code: github.com/The...
Classes and Objects: Introduction, Class creation, Components of class and object,
The _init_() Function, Object Methods, Modify Object Properties, Delete Object Properties, The pass Statement, Self-variable, Constructor, Method Vs Constructor
Types of Variables, Instance Variables, Declaration of Instance variables, Inside Constructor by using self variable, Inside Instance Method by using self variable, Outside of the class by using object reference variable, Delete instance variable from the object, Changing the values of instance variables, Static variables,
Different declaration of static variables, Declare within the class but out side of any method, Inside constructor (using class name), Inside instance method (using class name), Inside class method (using either class name or cls variable), Inside static method (using class name), How to delete static variables of a class, Local variables,
Types of Methods: Instance methods, Class methods, Static methods, Setter and Getter Methods, @classmethod decorator, cls keyword, Passing members of one class to another class,
Inner classes, Multi level inner class, Garbage Collection, Destructors, Built-In Class Attributes, Find the number of references of an object