Ask your own question, for FREE!
Computer Science 11 Online
OpenStudy (anonymous):

what do classes use to define their behavior? is it constructors? variables? parameters? something else? can someone please explain?

OpenStudy (anonymous):

this is in Java btw!!!

OpenStudy (rsmith6559):

All of the above. First, classes are descriptions ( blueprints ) for objects to be created. The constructor method initializes ( sets up ) the object for use. The behavior of an object would be primarily influenced by it's methods ( functions bound to the object ), but also what attributes ( methods would be an attribute, but attribute usually used as a term of variables ) the object has. Basically, methods are verbs and attributes are nouns. An object possesses attributes and can do methods with them and parameters passed to it.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
laylasnii13: Can i dm anybody to vent having a rough time ??
8 hours ago 1 Reply 0 Medals
kaelynw: starting to draw a hand
7 hours ago 15 Replies 2 Medals
Twaylor: Rate it :D (Took 2 days)
8 hours ago 7 Replies 0 Medals
XShawtyX: Art, Short Writing Assignment: Imagining Landscapes
8 hours ago 4 Replies 1 Medal
XShawtyX: Chemistry, Help ud83dude4fud83cudffe
1 day ago 13 Replies 1 Medal
kaelynw: tried a lil smt, the arm is off but i like the other stuff
1 day ago 27 Replies 3 Medals
kaelynw: art igg
1 day ago 14 Replies 1 Medal
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!