How many copies of static and class variables are created when 10 objects are created of a class?
How many copies of static and class variables are created when 10 objects are created of a class? Correct Answer 1, 10
Only one copy of static variables are created when a class is loaded. Each object instantiated has its own copy of instance variables.
মোঃ আরিফুল ইসলাম
Feb 20, 2025