if u write a class do u write Assignment operator and copy
constructor
Answer Posted / sachin
Compiler provide the assignment operator/ copy constructor
by default. The assignment operator and copy constructor do
the bit wise copy of the object. If user want to do the
member wise copy(ex:allocating the memory from the heap)
for the members, one can write his/her own assignment
operator/ copy constructor.
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism and example?
What are the two different types of polymorphism?
What is coupling in oops?
Why is polymorphism needed?
to find out the minimum of two integer number of two different classes using friend function
What are the three main types of variables?
What is class and object in oops?
What is encapsulation with example?
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.
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is abstraction in oop?
What is the difference between abstraction and polymorphism?
What does <> mean pseudocode?
What is object-oriented programming? Webopedia definition
why reinterpret cast is considered dangerous?