Ask
your own question, for FREE!
Computer Science
12 Online
what do classes use to define their behavior? is it constructors? variables? parameters? something else? can someone please explain?
Still Need Help?
Join the QuestionCove community and study together with friends!
this is in Java btw!!!
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!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Puffer:
My life basically all in one poem (aka my sleep habits and endless bordem lol) In the quiet dark, my eyes won't close, A restless mind, it constantly grows.
zanesafoodie:
chat i have a massive migraine rn but i promise try and post ASAP
cullenn:
Would you still love me if I showed you, My cries instead of my smiles? My scream
zanesafoodie:
I'm sitting alone in my room~ the lights off with me trying to do the same to my
cullenn:
heyy i need help w math lol, also theres a few problems i js have to post them on
10 hours ago
0 Replies
0 Medals
22 hours ago
0 Replies
0 Medals
22 hours ago
12 Replies
4 Medals
19 hours ago
7 Replies
0 Medals
22 hours ago
10 Replies
2 Medals