WHAT IS OOPS ?? It is object oriented programming in which programming is oriented by the object. Basic idea behind oops is that computer program may be seen as collection of individual units or objects.
BASIC CONCEPTS OF OOPS 1. Objects 2. Class 3. Data abstraction 4. Encapsulation 5. Inheritance 6. Polymorphism
CLASS It is termed as a basic unit of encapsulation. A class is a grouping of objects that have the same properties, common behaviour and common relationships. A class is a blue print or prototype from which objects are created. OR
OBJECT A variable type of class is called an object, which have a physical existance . OR Object is basically a class variable that does the implementation of the plan inside the class. EX: VEHICLE is a CLASS. CAR, BIKE, BYCYCLE, BUS, TRUCK are the OBJECTS which are inside the class.
DATA ABSTRUCTION It is a mechanism to represent only essential features which are of only use of significance and hides all the unimportant details.
ENCAPSULATION It is the process that allow selective hiding of properties and methods in a class. OR Mechanism that binds both function and data in one compact form called encapsulation.
INHERITANCE DERIVED/NEW CLASS can inherit some of properties of the BASE/SUPER/PARENT CLASS . It is of five types:- 1. SINGLE INHERITANCE 2. MULTIPLE INHERITANCE 3. MULTILEVEL INHERITANCE 4. HIERARCHICAL INHERITANCE 5. HYBRID INHERITANCE
POLYMORPHISM It is a greek word which is made by two words:- POLY(MANY) AND MORPHISM(FORMS). Polymorphism means same things in different form. It is the main pillar of oop . It is of two types:- 1. OPERATOR OVERLOADING 2. FUNCTION OVERLOADING