When a private constructer is being inherited from one
class to another class and when the object is instantiated
is the space reserved for this private variable in the
memory??
Answer Posted / reejusri
Neha, your question is not proper, please edit that. Some
where inheritance of private constructor and some where
private variable.
Please edit it so that people can help you.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What polymorphism means?
What is overriding in oops?
Which language is not a true object oriented programming language?
What is encapsulation with example?
Why is polymorphism needed?
Why we use classes in oop?
What is an interface in oop?
Where You Can Use Interface in your Project
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.
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’.
What are two types of polymorphism?
What are the important components of cohesion?
Can we create object of interface?
Are polymorphisms mutations?
What is oops with example?