Answer Posted / sujatha
a compiler directive which includes or excludes lines of
codes based on a boolean expression and it is a debugging
tool for checking a errors and debug it.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is class encapsulation?
What are properties in oop?
What is encapsulation example?
when to use 'mutable' keyword and when to use 'const cast' in c++
Why we use classes in oop?
What is the types of inheritance?
What is the point of oop?
Why is destructor used?
Explain virtual inheritance?
What is abstraction in oop with example?
What are the two different types of polymorphism?
What is methods in oop?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
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.