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
Emoboy: who wants to play warzone
38 minutes ago 0 Replies 0 Medals
Emoboy: I done graduated high school!
26 minutes ago 4 Replies 0 Medals
Gucchi: English help
1 day ago 4 Replies 2 Medals
XxXGhostXxX: Help me wit math
19 hours ago 8 Replies 1 Medal
danielfootball123: Many of you have gum dieses and don't know it .. Here is how to cure it.
1 day ago 23 Replies 1 Medal
uknownprttyfacekayla: Happy birthday to my irl sister @skyanne
1 day ago 12 Replies 0 Medals
Spectrum: HAPPY BIRTHDAY @ultrilliam!
1 day ago 23 Replies 6 Medals
gelphielvr: (Algebra1) need help asap Question in the replies
2 days ago 5 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!