Ask your own question, for FREE!
Computer Science 19 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
Arriyanalol: Happy heavenly bday hayden panterria Forever 37
2 hours ago 0 Replies 0 Medals
Jaded012023: Please tell me what you all think of this song
2 hours ago 2 Replies 0 Medals
yns: Y'all pray for marienne broda got a heart failure
2 hours ago 4 Replies 1 Medal
Arriyanalol: bro how
1 day ago 1 Reply 2 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
2 days ago 11 Replies 1 Medal
MrsTooTac: naa shorty blew me askin me if i eat ahh wdf
2 days ago 0 Replies 0 Medals
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!