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 type of question are asked in thoughtworks pair programming round ?
What is object-oriented programming? Webopedia definition
Get me an image implementation program.
is there any choice in opting subjects like 4 out of 7
Advantage and disadvantage of routing in telecom sector
What is the point of polymorphism?
What is solid in oops?
Explain the advantages of inheritance.
What is overloading and its types?
What is abstract class in oops?
What is polymorphism and why is it important?
Why do we use oop?
What is the difference between a constructor and a destructor?
What is ambiguity in inheritance?
Are polymorphisms mutations?