Topics

6/recent/ticker-posts

Characteristics of Object oriented programming language

CHARACTERISTICS OF OOPS

When learning any language it is important to learn some characteristics and advantages of that particular language and it plays a major role while learning a language in a simple and understandable way.
 Here we will see some important characteristics of OOPs language 


The Object oriented programming languages has several branches like Polymorphism, Inheritance, Abstraction, message Passing ,Data hiding etc..
Now let us see some important things what the branches help in Oop language.

1. Class: 
  • All the functional and Object data are collected, or present only in this class. Whenever if we want the data then this class will manipulate that whether the data is there or not. Here in this class the data and functions object can be made user defined type with the help of class.
  • Once the class has been created, then we can create so many objects which will perform a different tasks based on our requirement. The Syntax for a class is defines as follows: 
        class Class_Name {
                    private:
                    data members;
                    public:
                    functions;
            };

2. Objects: 
  • After creating the class next we will create objects of that particular class and  give or assign a different task for that object with respect to the class. The object may represent our day to day life formulas in mathematics, Bank account saving etc..
  • The syntax for these object creation is:

        Class_name Object_name;

3. Encapsulation:  
  • Encapsulation it is a process of data wrapping where all the data will be wrapped into a single unit without the loss. And one of the major advantage of this Encapsulation is the data is accessed and used in members functions and members in that particular class not by other classes. 
  • With this encapsulation the topic called data hiding has been introduced. 
  • Data Hiding: The insulation of data from direct access by program is called as Data Hiding.


4. Abstraction: 
  • Any method or function was just declared in a class but defined in other class with reference to the previous class is know as Abstraction. In other words it represents the essential feature without including the background details or explanation..
  •  Another definition for Abstraction is we can just instantiate from one class but couldn't inherit from that same class is known as Abstraction. 
  • The classes use a concept of data abstraction hence it is sometimes also called Abstract Data type(ADT).

5.Inheritance: 
  • Inheritance is defined as deriving a new class form its base class. It mainly supports the concept of Hierarchial Classification. 
  • One of the major and important use of this inheritance is Reusability. We can use the data again and again with this inheritance.
6. Data Binding: 
  • Dynamic Binding means that the functions associated with the given procedure call is not known until the time of the call at the run time. One of the major dis advantage of this data binding is it cause exceptions during run time. And this shows Runtime Polymorphism. 
7.  Message Passing:  
  • The ultimate features of oops is message passing. As we can send the message to that object of class to show that particular information without executing the whole program.  This will help to build servers. It will invoke a function in the returning object that generate the derived result.
  • It mainly activates the specified name of that object for which the message has been passed or informed. 

Post a Comment

1 Comments

  1. Thanks for uploading and the blogger is nicely designed

    ReplyDelete