Can we have a private constructor ?
Answers were Sorted based on User's Feedback
Answer / namrata ahuja
no. constructors are always declared publicly. they are used
to initialize data members of a class. they are
automatically invoked by a class object declaration so if it
is private it cannot be invoked.
| Is This Answer Correct ? | 6 Yes | 39 No |
Answer / 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 |
Why is oop better than procedural?
What is polymorphism in oop example?
What is difference between pop and oop?
What is object and example?
What are the access specifiers avaible in c++?
what is code for call by value and call by reference?
What does enum stand for?
Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.
What Is a Polymorphism? How many types of polymorphism and whats that use in application?
How long to learn object oriented programming?
What is multiple inheritance ?
17 Answers Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,
what is object oriented programming and procedure oriented programming?