What is the difference between an object and a class?
Answer Posted / manas
a class is a datatype that abstratcs data and implementations
while an object is an instance of the class which wraps up data. An object has identity, state and behavior
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is super in oop?
Templates mean
write string class as your own class in java without using any built-in function
What does it mean when someone says I oop?
What is inheritance in oop?
Why is oop better than procedural?
Why is oop useful?
What is overloading in oop?
to find out the minimum of two integer number of two different classes using friend function
What do you mean by Encapsulation?
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?
What is the oops and benefits of oops programming?
What is object in oop with example?
Can a destructor be called directly?
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.