Can we have a private constructor ?
Answer Posted / prabha govind
yes
and if a constructor is made private/protected...then that
class cannot be inherited
Is This Answer Correct ? | 116 Yes | 23 No |
Post New Answer View All Answers
What is constructor in oop?
What is encapsulation in ict?
What is oops and its features?
What is polymorphism what are the different types of polymorphism?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
How many human genes are polymorphic?
What do you mean by overloading?
What are the 4 pillars of oop?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is polymorphism and types?
Is enum a class?
What is abstraction in oops?
What is overloading in oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.