Ask
your own question, for FREE!
Computer Science
11 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
laylasnii13:
Poem/diary i wrote I Want Out Iu2019m so tired of screaming into walls. Every fight with my mom leaves something broken and itu2019s not just plates or slam
Countless7Echos:
Aye.. I need actually some help on the shading here.. if the light is from above too I just feel something is off.
Countless7Echos:
I don't know just no sketch doodle day :p finished a video already so I'm pretty
2 hours ago
12 Replies
3 Medals
1 day ago
19 Replies
3 Medals
3 days ago
9 Replies
2 Medals