সোমবার, ১৬ অক্টোবর, ২০১৭

Write some features of Object Oriented Programming (OOP)

The most important of OOP features are
1. Object
2. Class
3. Data hiding
4. Encapsulation
5. Dynamic Binding
6. Inheritance
7. Message passing
8. Polymorphism 

Let us consider a short  overview  some of these important features of OOP

1. Object
         Object is an instance of a class.

2. Class
        The class is the mechanism that is used to create objects. Classes are user defined data type. Once a class has been created, we can make any kind of object belonging to that  class.
A class is declared using the class keyword. The syntax of a class declaration is similar to that of a structure. Its general form is shown here

class class_name
       {
         //Private functions and variables
    public:
         //Public functions and variables
       }object_class;
3.Encapsulation
             Encapsulation is the mechanism that binds together code and the data manipulates and keeps safe from outside interference and misuse .

4. Polymorphism 
             Polymorphism is the quality that allows one name to be used for two or more related but technically different purposes.

5.Inheritance
            Inheritance is the process by which one object can acquire the  properties of another .



Share:

0 comments:

একটি মন্তব্য পোস্ট করুন