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
Get me an image implementation program.
What is stream in oop?
What is pure oop?
What is difference between polymorphism and inheritance?
What is polymorphism oop?
Which type does string inherit from?
What makes a language oop?
What is abstraction in oops?
Why do pointers exist?
What is polymorphism and example?
Can we override main method?
Explain virtual inheritance?
Can we create object of interface?
any one please tell me the purpose of operator overloading
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.