Q:

What if static members are declared inside template classes?

0

What if static members are declared inside template classes?


  1. All instances will share the static variable
  2. All instances will have their own static variable
  3. All the instances will ignore the static variable
  4. Program gives compile time error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (b).All instances will have their own static variable

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING OBJECTS AND CLASSES IN OOPS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is the output of following program?... >>
<< How is function overloading different from templat...