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 class encapsulation?
class type to basic type conversion
What is an example of genetic polymorphism?
Why do we use polymorphism in oops?
Why oops is important?
What is the advantage of oop over procedural language?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What are classes oop?
What does sksksk mean in text slang?
What is overriding in oop?
How does polymorphism work?
What is difference between oop and pop?
What is inheritance in oop?
What is the oops and benefits of oops programming?
• What are the desirable attributes for memory managment?