OOPs with Real time Examples
Oops! What an excellent concept. Nowadays in software filed any latest language has implemented, it should be partially are fully supported this oops concept. OOPs, let c with real time examples. Six important factors are using this concept are, Class, 2.Objects, 3.Abstractions, 4.Encapsulation, 5.Polymorphism, and 6.Inheritance. 1. Car Vs Class Car: Collection of several properties like staring, break, clutch, etc each things are used for particular purpose, all these properties are differ from each car like some car have power staring ,however we have called it's a car. Class: it's a collection of functions and variables. The functions and variables are differing from each class. Each function is used for particular purpose however we have called it's a class 2. Car Key Vs Object Car Key: key is used for run the car. So many dummy keys can use for run a car. Object: Object is used for run the class or invokes the cl...