Can we have a private constructor ?
Answer Posted / ashwini
Yes, We can.
By doing so, we can create only single instance of the
class.(singleton)
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
#include
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is the difference between inheritance and polymorphism?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What does oop mean in snapchat?
What is abstraction in oop?
What is the diamond problem in inheritance?
What is variable example?
write a program that takes input in digits and display the result in words from 1 to 1000
What is a class and object?
What is the importance of oop?
What is oops and why we use oops?
officer say me - i am offered to a smoking , then what can you say
What is the main purpose of inheritance law?
hi all..i want to know oops concepts clearly can any1 explain??