Can we have a private constructor ?
Answer Posted / arpitha
no, its of no use having a private constructor,,, bcoz
declaring constructor as private makes it blocked.
| Is This Answer Correct ? | 6 Yes | 24 No |
Post New Answer View All Answers
What is abstraction and encapsulation?
What is the diamond problem in inheritance?
What do you mean by variable?
c++ program to swap the objects of two different classes
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
what is the sylabus for priliminaries?
What are oops functions?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is advantage of inheritance? what's the basic's in dot net What is abstraction example? Can a destructor be called directly? What is the real time example of encapsulation? Why multiple inheritance is not allowed? What is inheritance write a program to show use of inheritance?