Object Oriented Programming in Hindi Urdu

The technique which is used to imagine our programming complications. Here we can say that it is a method which we use to imagine our programming problem as an object and their contact as took place in real life.

Examples:

In real life we can see different object that interact with each other to complete different task for example.

Model in object oriented programming?

A model is actually is a concept of somewhat actual or conceptual. We model this because we want to understand any feature of reality.

Object –Orientation and its advantages

Object oriented model is used to plan directly to real life as we already have seen in the example given above that we have three object that are person pen mobile and bag and that person use these all objects. .

The development of object oriented model is very easy for a problem. The object oriented model is very easy to understand. If we want to implement the object oriented model for any type of problem by using object oriented language like C++ by using it structures alike classes inheritance ,polymorphism ,inheritance .

object oriented programming in hindi urdu

object oriented programming in hindi urdu

What is an Object?

An object is,

Anything which exist physical (Ali, School, House, Car).

  • Identity :

Such property which identify itself.

  • State :

State contain all information that an object contain.

  • Example

Book, Title, page, author, price.

  • Behavior :

How object will react in the reaction of external behavior.

  • Surrounding :
  • It’s enjoinment

What is Information Hiding?

Information hiding is a very essential standard of OOP stimulated from real life which it that all type of information would not be accessed by everyone. The owner can only access its private information.

Here information hiding means is to show only that information to the world which is to show them.

Following are some example of Information Hiding

  1. Waqas is name and all the personal information is stored in the brain and if we want to know anything else about was then we have to talk with was and it’s up to was how  he shows information to you.
  2. A Facebook server contains information’s of billions of people but it only share that information with us whish he allowed. It did not personal information of nay person
  3. A hard disk may stores numerous images and movies document in it but we cannot access that data directly we need to use a computer to get access all data and the owner of that hard will allow you to use that hard disk.

Now come to object oriented programming we use object with their attributes and behaviors but that all are hidden from other classes

These are given principle for object oriented programming.

In the perspective of Object Oriented Programming Information Hiding is,

“Hiding the object details (state and behavior) from the users”

Here by users we mean “an object” of another class that is calling functions of this class using the reference of this class object or it may be some other program in which we are using this class.

Information Hiding is achieved in OOP using the following principles.

  • 1.      An object contains all type of information which is relating go him
  • 2.      All information related to an object is stored within the object.
  • 3.      Outside world is not allowed to see its details.
  • 4.      Object can only manipulate itself.

Advantages of Information Hiding

It simplifies our Object Oriented Model:

In object oriented model it contains object and its relation with other but the information of any objct is hidden itself which is helpful to every one to make better understanding of object oriented model.

As we saw earlier that our object oriented model only had objects and their Interactions hiding implementation details so it makes it easier for everyone to

Understand our object oriented model

Updated: July 12, 2019 — 6:23 pm

Leave a Reply

Your email address will not be published. Required fields are marked *