Why is it so that we can have virtual constructors but we
cannot have virtual destructors?
Answer Posted / sachinmundhra
vptr gets initialize in constructor. So in that case we
cannot have virtual constructor.
Is This Answer Correct ? | 5 Yes | 0 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.
class type to basic type conversion
What is solid in oops?
Why do we use oop?
What is interface? When and where is it used?
What is class and object with example?
What is object and example?
What are the benefits of polymorphism?
Why is object oriented programming so hard?
Why is oop useful?
What is abstraction example?
What is interface in oop?
What is byval and byref? What are differences between them?
Can bst contain duplicates?
What is abstraction oop?