61.1k views
5 votes
(tco 3) assume you have a person class with a non-static attribute named age. if you create seven objects of this class, how many copies of the age variable will you have?

1 Answer

2 votes
Also seven. If the attribute is not static, it exists only in an instance (=object), so you'll have one copy per instance, ie., one copy per object.
User Navigateur
by
9.1k points

Related questions

2 answers
0 votes
168k views
1 answer
2 votes
232k views
asked Mar 2, 2024 149k views
Jsherer asked Mar 2, 2024
by Jsherer
8.0k points
1 answer
3 votes
149k views