ANkita gupta

Total Post:1

Posted by  ANkita gupta
 1359  View(s)
Rate this:
Object Oriented Programming is quiet interesting language to handle programs in more compatible and stylish way. It relates with real world examples.Before talk in computer language i would like to give some examples which relate from real world like dog, chair etc.
first of all, we have to understand what is object?
object which has two features i.e. state of the object and behavior of the object.
let us explore the e.g. dog
dog has state like color, breed, gender, name ,hungry.  i think these are the possible states in case of dog,while for behavior its barking, taming tail, playing.
similarly, all this happen in programming we first write down all possible state which relate with that object then write the program with help of syntax assigned,.
In computer programming their is state cd. fields and behavior cd. methods.
the process which hide state or feild and allow or access only methods that is cd. data encapsulation.
That is sufficient to understand what is object and how to write program object oriented based.
In next post i will come with some example generate by me , if i struck in any problem then please correct me at that place , feel free to give your suggestion regarding my explaination...
  1.   Modified On Apr-27-2015 01:52:47 AM
  1. Mayank Tripathi


    Re: OOPS????

    Very Correct Ankita very neatly explain!!

    Try to explore more about OOPS principals like abstraction and Encapsulation,that will make your concepts more clear

  1.   Modified On Apr-27-2015 04:02:26 AM
  1. ANkita gupta


    Re: OOPS????

    Thanks everyone for giving suggestion, i will do much better in this field .



Enter your email address here always to be updated. We promise not to spam!