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 encapsulation in simple terms?
What is the real time example of encapsulation?
What are the advantages of polymorphism?
What are benefits of oop?
What is an interface in oop?
What is abstraction with example?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Who invented oop?
class type to basic type conversion
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
officer say me - i am offered to a smoking , then what can you say
Can an interface inherit a class?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
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 is encapsulation in oop?