create a class complex having real and imaginary part of a
complex no. as a data member. overload the binary
operators(+,- and *) to perform the operations on complex
no. objects. overload binary operator using friend function.
Answer Posted / guest
can anyone tell me this answer??? please its urgently
required....
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
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 example?
Why multiple inheritance is not allowed?
What are classes oop?
What is class and example?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What do you mean by overloading?
Why do we use oop?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is difference between data abstraction and encapsulation?
How does polymorphism work?
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 the diamond problem in inheritance?
What is polymorphism give a real life example?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)