What If Static Members Are Declared Inside Template Classes #416
What if static members are declared inside template classes?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 OOps Classes - Object Oriented Programming MCQ: Template Class - Quiz No.2.
What if static members are declared inside template classes?
All instances will share the static variable
All instances will have their own static variable
All the instances will ignore the static variable
Program gives compile time error