Can we have a private constructor ?
Answer Posted / ravi`
no,
we can not make a constructor private , if we make a
constructor private its method cannot access in main method .
| Is This Answer Correct ? | 17 Yes | 136 No |
Post New Answer View All Answers
What is the point of polymorphism?
What are oops methods?
Why do we use inheritance?
What are the types of abstraction?
what is different between oops and c++
What is polymorphism what is it for and how is it used?
What is constructor in oop?
What is debug class?what is trace class? What differences are between them? With examples.
What is the purpose of enum?
What is object and example?
class type to basic type conversion
Are polymorphisms mutations?
What is the benefit of oop?
What are the important components of cohesion?
Which type does string inherit from?