Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Basic concept of object oriented programming

45 views

Published on

• objects
• Classes
• Data Abstraction
• Encapsulation
• Data Hiding
• Inheritance
• Over loading
• Polymorphism
• Binding
• Message passing

Published in: Education
  • Be the first to comment

  • Be the first to like this

Basic concept of object oriented programming

  1. 1. Basic Concepts of object-oriented programming. Object Data Abstraction Classes Encapsulation Data Hiding Inheritance Over loading Polymorphism Binding Message passing objects objects are the basic run-time entities in object-oriented system. An object is an object is an entity that has state, behavior and identity. there are many objects around us. E.g. computer mouse is an object. it is considered an object with states would be its color,sizeand brand name and its behavior would be left-Click, right-click. Classes A class is an entity that helps that programmer to define a new complex data type. Objects are the variables of type class. A class defines the data and behavior of objects. In simple’s words, a class is a collection of objects of similar type. E.g. Mango apple and orange are members of the class. Data Abstraction Data Abstraction refers to the act of representing essential features without including the back-ground details. It is concerned with separating the behavior of a data object from its representation. E.g. Executable file of a program. Encapsulation The process of binding data members and functions in a class is known as, encapsulation. Encapsulation is the powerful feature (concept) of object-oriented
  2. 2. programming. With the help of this concept data is not accessible to the outside world and only those functions which are declared in the class, can access it. Data Hiding Data hiding is similar to encapsulation. Basically , encapsulation data members and functions in a class promotes data hiding. this concept with help us to provide the essential features to the users and hide the details in short, encapsulating through private access modifier (label) is known as data hiding. Inheritance inheritance is process by which objects of new class acquire the properties of objects of existing (base) class. It is in inheritance order. The concept of inheritance provides the idea of reusability. The means that we can add additional features to an existing class without modifying it. Over-loading Object-oriented programming also provides a facility to extend the meaning of available functions and operators. Assigning an extra meaning to an existing operator or a function is known as over-loading. Polymorphism Polymorphism is an important object-oriented programming concept. This is a geek term, means the ability to take more than one form. The process of making an operator to show different behaviors in difference instances is known as over loading. Using a single function name to perform difference types of tasks is known as function-overloading. Binding Binding refers to the linking of a procedure call to the code (its body) to be executed in response to the call. In object-Oriented programming, Binding is of two types; static Binding : linking of a function call to its body at the compile time is known as static binding . It is also known as early binding.
  3. 3. Dynamic Binding: Linking of a function call to its body during run-time is known as static binding. It is also known as late binding Message passing In object-oriented programming, object communicates with one-another by sending and receiving information much the same way as people send messages to one- another. A message for an object is a request for execution of a procedure (function) and therefore invoke(call a function in the receiving object that generates the desired result. Message passing involves specifying the name of the object, the name of the object, the name of the function and the information to be sent.

×