Answer Posted / safe
an object is destroyed to make memory free which is
allocated by object. it can automatically done by destructor
(default destructor)if we dont call a destructor.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is encapsulation selenium?
Why multiple inheritance is not possible?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What language is oop?
What is inheritance and how many types of inheritance?
What is destructor oops?
#include
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is interface? When and where is it used?
How do you explain polymorphism?
2. Give the different notations for the class.\
Is data hiding and abstraction same?
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.