Ask
your own question, for FREE!
Computer Science
17 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
unknownnnnnn:
story time. You said this to meu2026 heu2019s gone And the way you said it, as the world stopped for a second.
CloverKris:
If a fictional character were to attach an Atlatl to a mechanical arm (updating t
serenitystXrgazer:
They are little lines of nothing slits of a vacuum void of light or anything good.
jhaseker:
Rate A slow departure, felt in quiet shifts, As presence fades and silence drifts.
zanesafoodie:
(I wouldn't exactly consider this a commission and yet I am so here we go,) this
9 hours ago
35 Replies
1 Medal
17 hours ago
4 Replies
0 Medals
15 hours ago
1 Reply
0 Medals
22 hours ago
21 Replies
3 Medals
1 day ago
12 Replies
0 Medals