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
Can inner class final?
Why we go for collections in java?
Is main a keyword in java?
What is array list in java?
What is the point of polymorphism java?
Who developed java?
Which data type is class in java?
What is the r character?
What is the argument in java?
What do you mean by byte code?
What are the benefits of operations in java?
Can size_t be negative?
Difference between java and javascript
How do you write a conditional statement?
Can a static class implement an interface?