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


Please Help Members By Posting Answers For Below Questions

What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2102


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3552


How long to learn object oriented programming?

563


write a program that takes input in digits and display the result in words from 1 to 1000

1987


What are oops functions?

583






Why do while loop is used?

572


What is advantage of inheritance?

688


What is for loop and its syntax?

596


any one please tell me the purpose of operator overloading

1965


Please send ford technologies placement paper 2 my mail id

1652


2. Give the different notations for the class.\

1588


What is object and example?

602


What are functions in oop?

582


How to hide the base class functionality in Inheritance?

636


What is debug class?what is trace class? What differences are between them? With examples.

1605