Can we create object of class with private constructor?
Answer Posted / supriya
No we cannot create the objects of class with private
constructor outside the class
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
State what is encapsulation and friend function?
Prepare me a program for the animation of train
What is abstract class in oops?
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.
Why is abstraction used?
What is overloading in oops?
What are the components of marker interface?
What is polymorphism and why is it important?
What are the 4 main oop principles?
What is overriding vs overloading?
What is object and class in oops?
Why multiple inheritance is not possible?
Can main method override?
What are benefits of oop?
What is destructor in oop?