Ask your own question, for FREE!
Computer Science 12 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
XxXGhostXxX: Y'all got any song recommendations
4 hours ago 1 Reply 0 Medals
cullenn: @circusbaby
16 hours ago 57 Replies 2 Medals
cullenn: more math guysss!! this is my last ixl sob. pls help me..
10 hours ago 48 Replies 1 Medal
cullenn: whats the area
19 hours ago 49 Replies 2 Medals
zanesafoodie: chat i have a massive migraine rn but i promise try and post ASAP
22 hours ago 0 Replies 0 Medals
cullenn: heyy i need to get to a 70 on this ixl-
22 hours ago 5 Replies 3 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!