0
Objects, instance, variable, identifier arnt these all the same thing but used diffrently is classes?
5 Respuestas
+ 3
well,yes, class is a template or type of object.Object is instance of a class.the instance can be store in a variable this is a name of instance. An instance variable is a variable defined in particular object.Also declared in class.
+ 1
cool glad thats out the way makes sense now just trying to work out what is what becuase theres no point in reading things if im not 100% sure what it is im reading or doing. :)
+ 1
right,this is the best way how to get 100% certain what is what and how work with it.Good luck dude;)
0
It depends on the point of your view.Simply no,these things are different parts of programming.
0
so is this right?
an object is a instance of a class
class ball < class { < class body
states > colour > size <instance variable
behaviours > bounce < instance variable