Answer Posted / subhashish saha
When you try to assign derived class object to an object of
base class, it takes the elements that has relivance with
respect to the base class and slices off the remaining
thing. this is object slicing...
| Is This Answer Correct ? | 27 Yes | 1 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.
What exactly is polymorphism?
Can we create object of abstract class?
What is difference between abstraction and encapsulation?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
How long to learn object oriented programming?
What is the significance of classes in oop?
Why do we need oop?
What is the purpose of enum?
What are the 5 oop principles?
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?
#include
What is the difference between static polymorphism and dynamic polymorphism?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is destructor in oop?