Object Oriented Programming In Hindi
Related Terms.Object- oriented programming ( OOP) refers to a type of computer programming (software design) in which define not only the of a, but also the types of operations that can be applied to the data structure.In this way, the data structure becomes an that includes both and functions. In addition, programmers can create relationships between one object and another.
For example, objects can inherit characteristics from other objects. The Basic OOP ConceptsIf you are new to object-oriented programming languages, you will need to know a few basics before you can get started with code. The following Webopedia definitions will help you better understand object-oriented programming.: The process of picking out (abstracting) common features of objects and procedures.: A category of objects. The class defines all the common properties of the different objects that belong to it.: The process of combining elements to create a new entity. A procedure is a type of encapsulation because it combines a series of computer instructions.: The process of hiding details of an object or function.
Object oriented programming – As the name suggests uses in programming. Object oriented programming aims to implement real world entities like inheritance, hiding, polymorphism etc in programming. The main aim of OOP is to bind together the data and the functions that operates on them so that no other part of code can access this data except that function.Let us learn about different characteristics of an Object Oriented Programming language:Object: Objects are basic run-time entities in an object oriented system, objects are instances of a class these are defined user defined data types.ex. FilternoneObject take up space in memory and have an associated address like a record in pascal or structure or union in C.When a program is executed the objects interact by sending messages to one another.Each object contains data and code to manipulate the data. Objects can interact without having to know details of each others data or code, it is sufficient to know the type of message accepted and type of response returned by the objects.Class: Class is a blueprint of data and functions or methods. Class does not take any space.Syntax for class. FilternoneClass is a user defined data type like structures and unions in C.By default class variables are private but in case of structure it is public.
In above example person is a class.Encapsulation and Data abstraction: Wrapping up(combing) of data and functions into a single unit is known as encapsulation. The data is not accessible to the outside world and only those functions which are wrapping in the class can access it. This insulation of the data from direct access by the program is called data hiding or information hiding.Data abstraction refers to, providing only needed information to the outside world and hiding implementation details. For example, consider a class Complex with public functions as getReal and getImag. We may implement the class as an array of size 2 or as two variables. The advantage of abstractions is, we can change implementation at any point, users of Complex class wont’t be affected as out method interface remains same. Had our implementation be public, we would not have been able to change it.Inheritance: inheritance is the process by which objects of one class acquire the properties of objects of another class.
Explore the America's Everything Pack. Click one of the channel logos below for additional details. America's top 250 vs america's everything pack pack channel list. With a 2-year price guarantee, find a big selection of entertainment with the America’s Top 250 TV package. More sports, more channels, more of everything!
Learn Object Oriented Programming
It supports the concept of hierarchical classification. Inheritance provides re usability. This means that we can add additional features to an existing class without modifying it.Polymorphism: polymorphism means ability to take more than one form. An operation may exhibit different behaviors in different instances.
The behavior depends upon the types of data used in the operation.C supports operator overloading and function overloading.The process of making an operator to exhibit different behaviors in different instances is known as operator overloading.Function overloading is using a single function name to perform different types of tasks.Polymorphism is extensively used in implementing inheritance.Dynamic Binding: In dynamic binding, the code to be executed in response to function call is decided at runtime. C has to support this.Message Passing: Objects communicate with one another by sending and receiving information to each other. A message for an object is a request for execution of a procedure and therefore will invoke a function in the receiving object that generates the desired results. Message passing involves specifying the name of the object, the name of the function and the information to be sent.Related Articles:.
OOPS is abbreviated as Object Oriented Programming system in which programs are considered as a collection of objects. Each object is nothing but an instance of a class.