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 the fundamental idea of oop?
What exactly is polymorphism?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is encapsulation oop?
What is abstract class in oop?
What is polymorphism oop?
What is the renewal class?
How do you achieve runtime polymorphism?
Why do we use inheritance?
2. Give the different notations for the class.\
Why is object oriented programming so hard?
What is oops?what is its use in software engineering?
What is the example of polymorphism?
What are the 4 pillars of oop?
What is a class oop?