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 abstraction oop?
Is react oop?
What are the three parts of a simple empty class?
what are the realtime excercises in C++?
What is difference between data abstraction and encapsulation?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Can static class have constructor?
What is polymorphism and example?
What is difference between polymorphism and inheritance?
Why do we need polymorphism in c#?
What exactly is polymorphism?
What polymorphism means?
Which is not an object oriented programming language?
What is an interface in oop?
What is class and example?