- #1
lavster
- 217
- 0
Hi,
I have what i think must be a really basic question. What is meant by a class, object, instance and attribute in programming? In simple terms (i don't know computing at all). I thought a class was basically something that could be represented as a noun in everyday life, an object is an instance of a class (whatever that means...), and attribute is something that object does a method on...
but then take example of person making a call on a phone... person is a class? or an object? would it be an object if i made my person a specific person, for example Jim? and then the method is making the call. And then attribute is the phone? but would the phone not be an object. or even a class? Does it depend on the context that it is used in?
I am really confused...
Thanks
I have what i think must be a really basic question. What is meant by a class, object, instance and attribute in programming? In simple terms (i don't know computing at all). I thought a class was basically something that could be represented as a noun in everyday life, an object is an instance of a class (whatever that means...), and attribute is something that object does a method on...
but then take example of person making a call on a phone... person is a class? or an object? would it be an object if i made my person a specific person, for example Jim? and then the method is making the call. And then attribute is the phone? but would the phone not be an object. or even a class? Does it depend on the context that it is used in?
I am really confused...
Thanks