How to construct muliton object
Answers were Sorted based on User's Feedback
Answer / som shekhar
Multiton pattern is similar to singleton pattern but it
keeps the named instances in a key value pair.
In singleton pattern, the class will have only one instances
but in the multiton pattern it manages a map of named instances.
Is This Answer Correct ? | 1 Yes | 0 No |
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
Can a constructor be private?
What is the function of I/O library in C++ ?
What is Pure Virtual Function? Why and when it is used ?
What is the use of endl in c++?
What is the use of endl in c++ give an example?
How to avoid changing constant values?
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
What is the use of setfill in c++?
Is there structure in c++?
How long it will take to learn c++?
what you know about c++?