Can we have a private constructor ?
Answer Posted / arpitha
no, its of no use having a private constructor,,, bcoz
declaring constructor as private makes it blocked.
| Is This Answer Correct ? | 6 Yes | 24 No |
Post New Answer View All Answers
What are different oops concepts?
Why is destructor used?
What is difference between abstraction and encapsulation?
State what is encapsulation and friend function?
What does <> mean pseudocode?
What is interface? When and where is it used?
Can we override main method?
What is abstraction in oop with example?
What is class and object with example?
What is pointer in oop?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
what is difference between class template and template class?
What is the real life example of polymorphism?
What is encapsulation oop?