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
What is the real life example of polymorphism?
Why is polymorphism needed?
What is stream in oop?
What is super in oop?
Can a destructor be called directly?
what is the drawback of classical methods in oops?
Please send ford technologies placement paper 2 my mail id
What is the oops and benefits of oops programming?
What do you mean by variable?
What is basic concept of oop?
What is the purpose of polymorphism?
Why is object oriented programming so hard?
What is encapsulation in simple terms?
What is abstraction in oops with example?
What are functions in oop?