2nd semister Unit - 1 Python notes
2nd semister Unit - 1 Python notes
Unit-I: Object Oriented programming:
Modules and packages:
- Introduction to modules and packages
- import statement
- from…import statement
- creating our own modules
- working with built-in modules- Math module
- time module and random module.
Python Object Oriented:
- Difference between procedure-oriented and object-oriented programming.
- Features of object-oriented programming- classes and objects
- inheritance
- polymorphism
- encapsulation
- abstraction.
- Creating class,
- self-variable
- Constructor
- types of variables
- Namespaces
- types of methods
- passing member of one class to another class
- inner classes.
- Types of inheritance
- super() method
- method overloading
- method overriding
- abstract classes and interfaces.
0 Comments