When is an object created and what is its lifetime?
Answer Posted / nikhil
global scope,if created outside class n local scope if
created inside a class......
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Templates mean
Can main method override?
What is encapsulation with example?
What are the benefits of oop?
What is encapsulation with real life example?
What is encapsulation c#?
What is polymorphism explain?
How many human genes are polymorphic?
What is object in oops?
Where You Can Use Interface in your Project
What is balance factor?
What do you mean by Encapsulation?
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 oops and its features?
Can a varargs method be overloaded?