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


Please Help Members By Posting Answers For Below Questions

Can inner class final?

623


Why we go for collections in java?

536


Is main a keyword in java?

530


What is array list in java?

582


What is the point of polymorphism java?

535






Who developed java?

556


Which data type is class in java?

545


What is the r character?

580


What is the argument in java?

485


What do you mean by byte code?

501


What are the benefits of operations in java?

483


Can size_t be negative?

604


Difference between java and javascript

578


How do you write a conditional statement?

511


Can a static class implement an interface?

538