Ask
your own question, for FREE!
Computer Science
15 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
Demon25:
Yeah, I guess I'm a disappointment, doin' everythin' I can I don't wanna make you
Breathless:
I don't know if this would be considered art, but its close enough I believe, Any
Demon25:
Let my silence be my voice Let my silence remind you how many times I tried speak
EdwinJsHispanic:
How Do I make my "Happy face" look more real without people thinking something is
Breathless:
The Big 75, am such a [big shot] I can see [[heaven]] now ! I did what I have acc
Demon25:
I mess with you the most but I cant let you know cuz I know one day imma look up
Bounty:
how does this sound any pointers on how to make ur voice more powerful
19 hours ago
1 Reply
0 Medals
22 hours ago
3 Replies
0 Medals
2 days ago
5 Replies
1 Medal
2 days ago
13 Replies
1 Medal
2 days ago
6 Replies
0 Medals
2 days ago
1 Reply
0 Medals
6 days ago
6 Replies
2 Medals