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 a class oop?
What does <> mean pseudocode?
Can a varargs method be overloaded?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
program for insertion ,deletion,sorting in double link list
Explain virtual inheritance?
Why is polymorphism important in oop?
What are the 4 main oop principles?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What does sksksk mean in text slang?
Can destructor be overloaded?
How to call a non virtual function in the derived class by using base class pointer
what is difference between class template and template class?
What is the benefit of oop?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?