Can we have a private constructor ?
Answer Posted / manjunath
Used mainly to control the object creation...
Ex: the Number of user Login's we can restrict to 15 by
creating 15 objects...
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
Can main method override?
Who invented oop?
What is the example of polymorphism?
#include
What is the difference between procedural programming and oops?
What is new keyword in oops?
What polymorphism means?
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(); }
Why multiple inheritance is not possible?
what's the basic's in dot net
What is object in oops?
How do you explain polymorphism?
Prepare me a program for the animation of train
What is polymorphism explain?
Can static class have constructor?