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 / fgf
i also want answer for this question
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we have inheritance without polymorphism?
what are the ways in which a constructors can be called?
What is difference between data abstraction and encapsulation?
Can we override main method?
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 are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
program for insertion ,deletion,sorting in double link list
What is encapsulation oop?
What is the full form of oops?
What does oop mean in snapchat?
Can abstract class have normal methods?
How do you define a class in oop?
What is oops and why we use oops?
What are the benefits of interface?
What is a function in oop?