Answer Posted / priya
Constructor gets called when we create an object,or when we
allocated memory using new operator:
void main()
{
test *t = new test;
delete t;
}
Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What polymorphism means?
can we make game by using c
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 is polymorphism in oop example?
What is polymorphism and example?
Can you name some types of inheritance?
What does no cap mean?
Can you inherit a private class?
Can we override main method?
What is the difference between a mixin and inheritance?
What are the 3 principles of oop?
What is cohesion in oop?
Prepare me a program for the animation of train
Why do while loop is used?
What is encapsulation and abstraction? How are they implemented in C++?