Object Oriented Programming (OOP) Concepts

      

Object is a self contained entity that consist of both data and procedures to manipulate the data.

 “Class defines all the common properties of the different objects that belong to it.”

Polymorphism :
The ability to process object differently depending on their data type or class.

Abstraction:Refers to providing only essential information to the outside world and hiding their background details.  The process of picking out common features of objects and procedures.

Encapsulation:   Placing data and functions that works on the data in the same place.
   This feature found in oop not in procedural language.
   The process of combining elements to create a new entity.

Inheritance:                          
                             (Reusability of code)
   A feature that represents the relationship between different classes.
    The existing class is called base class and the new class is called drived class.

Function overloading:  Is a feature that allows a class to have two or more methods/Functions having the same name but different parameters.

Function over-riding:   Is a feature that allows a subclass or child class to provide a specific implementation of a method that already provided by its parent class.

Friend function:   A friend function of a class is defined outside that class scope but it has the right to access all private or protected members of class.

Constructor:A type of member function that is automatically executed when an object of that class is created, is known as constructor.     No return type.     Same name that of class name.

Abstract class:   Have abstract and non abstract methods.
   Doesnot support multiple function.
   Have final, non-final, static and non static variables.
   Provide implementation of interface.

Interface class:   Have only abstract methods.
   Support multiple Inheritance.
   Have only final and static variables.
   Can`t Provide implementation of abstract class.
Access specifier :     The command that determine wether a member of a class can be accessed from outside the class or not, called access specifier.
     Private specifier : The member of a class that can be accessed only from with in the class.
      Public specifier :  The member of class that can be accessed from inside and from outside of the class.

 ------------------------------------------------------------------------------------------------------------

Like and subscribe our channel for more information (if you like).






No comments:

Post a Comment