How many objects are created for a singleton class
Answer Posted / utkarsh verma
Some correction required in last solution
void main(){
Single *ptr = Single::Instance(); //The only way to
//instantiate
}
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What's the purpose of using break in each case of switch statement?
What is a percentage sign called?
What is the purpose of abstract class?
What is compareto?
What is difference between class and object in java?
difference between byte stream class and character stream class?
What are classloaders?
Differences between traditional programming language and object oriented programming language?
What is exception propagation?
What does sprintf mean?
What is difference between static class and normal class?
Why java is platform independent? Explain.
What are 4 pillers of object orinted programming?
why doesn't java run on all platforms?
Are true and false keywords?