Differences between inline functions and non-inline functions?
Answer Posted / ashu_deepu
inline function are those function in which the code is just inserted where the function is declared.
it is generally used for function which are small in size and don,t involve any loop.
it just a way to decrease the time of function call.
Is This Answer Correct ? | 12 Yes | 3 No |
Post New Answer View All Answers
What is polymorphism and types?
How do you answer polymorphism?
#include
What is this pointer in oop?
Can destructor be overloaded?
What is a function in oop?
What is encapsulation with example?
Why do we use class in oops?
What are classes oop?
What is new keyword in oops?
What are the components of marker interface?
Is this job good for future? can do this job post grduate student?
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 interface in oop?
What is oops in programming?