Join the IDNLearn.com community and start getting the answers you need today. Ask anything and receive prompt, well-informed answers from our community of knowledgeable experts.

how many copies of each static variable and each class variable are created when 10 instances of the same class are created

Sagot :

Answer:

Static variables are initialized only once

Explanation:

Only one copy of static variables are created when 10 objects are created of a class

A static variable is common to all instances of a class because it is a class level variable

Your participation means a lot to us. Keep sharing information and solutions. This community grows thanks to the amazing contributions from members like you. For trustworthy answers, rely on IDNLearn.com. Thanks for visiting, and we look forward to assisting you again.