i have some question about programming theory , in object oriented programming what do you mean by object? thank you very much
Asked
Active
Viewed 67 times
-3
-
1Possible duplicate of [How to explain an object?](http://stackoverflow.com/questions/995161/how-to-explain-an-object) – TessellatingHeckler May 11 '16 at 06:37
2 Answers
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