What is command routing in MFC
Answer / bob
Check the Command pattern in Gof books, MFC almost use it in
the same way:
SubWidget in the dialog will catch it firstly, it will
forward it to Parent window(the dialog) if *request is not
for it or no handler defined.
This procedure runs recursively, until one handle it or pass
it to application object. Application will omit unknown
command by default
| Is This Answer Correct ? | 2 Yes | 1 No |
what is object slicing?
design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }
Write 7 differences between "Public" function and "Private" function?
What is multilevel inheritance in oop?
can you give real time example for polymarphism
What is for loop and its syntax?
What is balance factor?
What is property in oops?
What is function overloading and operator overloading?
Can you inherit a private class?
What is use of overloading?
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.