Can we have a private constructor ?
Answer Posted / ashwini
Yes, We can.
By doing so, we can create only single instance of the
class.(singleton)
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is a superclass in oop?
What does and I oop mean in text?
Why we use classes in oop?
What is the full form of oops?
is there any choice in opting subjects like 4 out of 7
What is oops in simple words?
What is encapsulation in oops?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
Can we have inheritance without polymorphism?
How long to learn object oriented programming?
What is the point of oop?
Please send ford technologies placement paper 2 my mail id
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is the advantage of oop over procedural language?