OOPS Concept with Real-world example
Introduction OOP is Nothing but Object Oriented Programming.According to Wikipedia, Object-oriented programming (OOP) is a programming paradigm that uses "objects" and their interactions to design applications and computer programs. OOPs have following features 1. Object - Instance of class 2. Class - Blue print of Object 3. encapsulation - Protecting our data 4. polymorphism - Different behaviors at diff. instances 5. abstraction - Hidding our irrelavance data 6. inheritence - one property of object is aquring to another property of object 1. Object Basically an object is anything that is identifiable as an single material item. You can see around and find many objects like Camera, Monitor, Laptop etc. In OOP perspective, an object is nothing but an instance of a class that contains real values instead of variables 2. Class A class is a template definit...