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