Answer Posted / amri
When we use macro its need typecasting but in new not need of typecasting.
new is a operator.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is abstraction and encapsulation?
What is difference between oop and pop?
What is a class oop?
officer say me - i am offered to a smoking , then what can you say
What does and I oop mean in text?
What is solid in oops?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
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 with example?
Write a program to sort the number with different sorts in one program ??
What is pointer in oop?
What is object and example?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
when to use 'mutable' keyword and when to use 'const cast' in c++