Basic Concepts of object-oriented programming.
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
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.
A class is an entity that helps that programmer to define a new complex data
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 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.
The process of binding data members and functions in a class is known as,
encapsulation. Encapsulation is the powerful feature (concept) of object-oriented
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
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
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.
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 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 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
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.
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
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.