-3

i have some question about programming theory , in object oriented programming what do you mean by object? thank you very much

richard houw
  • 97
  • 1
  • 1
  • 7

2 Answers2

0

think of it as

**class is

 defining a model** 

and object is

"bringing it to life "

TGX
  • 81
  • 6
0

I would say it is just an abstraction of an entity.

If it is too hard to understand it, how about the following:

Object is just an instance of something, with some properties to describe it, and some actions/functions to manipulate it.

For example, you can see an basketball as an object, and it may look like:

basketball: {
    // Properties to describe this ball!
    int radius,
    string color,
    decimal price,
    bool isItNew,
    bool isItFullyPumped,
    ....
    // Actions to act on this ball!
    void roll()
    void bounce()
    void flying()
    ...
}

Of course, how to abstract a real life basketball to an programming object, is your choice and case-dependent, but you get the point of what is an object

shole
  • 4,046
  • 2
  • 29
  • 69