Intro To Programming 10th Lecture
Intro To Programming 10th Lecture
- dependent upon the object (It will run with the help
of objects only)
- Method will require object's name as well to call it
Function
- independent in nature (It will run independently)
- Function can be called directly with it's name
static function/method - they will never require object
- Inheritance
- Abstraction
- Polymorphism
- Encapsulation
Coding Test, Interview
- You will be told whether to make a static/
non - static function
Company
- You will follow Design Patterns
- Singleton Design Pattern
- Factory Design Pattern
Using Design pattern you will decide which
function is static or non-static