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


Please Help Members By Posting Answers For Below Questions

State what is encapsulation and friend function?

969


Prepare me a program for the animation of train

2237


What is abstract class in oops?

802


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.

6726


Why is abstraction used?

862


What is overloading in oops?

867


What are the components of marker interface?

818


What is polymorphism and why is it important?

803


What are the 4 main oop principles?

958


What is overriding vs overloading?

812


What is object and class in oops?

811


Why multiple inheritance is not possible?

825


Can main method override?

861


What are benefits of oop?

903


What is destructor in oop?

812