Can we have a private constructor ?
Answer Posted / prabha govind
yes
and if a constructor is made private/protected...then that
class cannot be inherited
Is This Answer Correct ? | 116 Yes | 23 No |
Post New Answer View All Answers
Can a varargs method be overloaded?
What is inheritance in oop?
What is abstraction in oops?
program for insertion ,deletion,sorting in double link list
What is the difference between static polymorphism and dynamic polymorphism?
What are benefits of oop?
What is inheritance in simple words?
How Do you Code Composition and Aggregation in C++ ?
What is inheritance write a program to show use of inheritance?
Advantage and disadvantage of routing in telecom sector
What is the full form of oops?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Why is abstraction used?
What is a null tree?
to find out the minimum of two integer number of two different classes using friend function