Answer Posted / mathi
Java is not a pure oop lang. Smalltalk is a pure oop
language.
Is This Answer Correct ? | 9 Yes | 6 No |
Post New Answer View All Answers
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.
Why is encapsulation used?
What is oops in programming?
What is abstraction example?
What is an interface in oop?
What are the 4 main oop principles?
Why do we use oops?
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 the purpose of polymorphism?
Prepare me a program for the animation of train
Why do we use inheritance?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
when to use 'mutable' keyword and when to use 'const cast' in c++
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
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.