Ask
your own question, for FREE!
Computer Science
10 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
Twaylor:
genuienly how do i get better self control i keep watcing youtube and theres this
IzzyCookie:
|dw:1792074056138:dw| Uhm, I don't know where to ask this, but I'm in college welding at my community college, and I need help learning vertical welding for
thehearken:
not sure if this is considered spam, im sorry if it is, but does anyone have tips
KRYPTICVAMPP:
I can tell that you are chosen,dancing through your dreams. I must sleep with one eye open, things I can't unsee.
Twilightt:
How is the Jeffery Epstein case associated with the department of Homeland securi
11 hours ago
3 Replies
0 Medals
1 day ago
5 Replies
1 Medal
2 days ago
2 Replies
1 Medal
3 days ago
1 Reply
0 Medals
3 days ago
1 Reply
1 Medal