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
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What are constructors in oop?
What is the diamond problem in inheritance?
What is the benefit of oop?
What is the important feature of inheritance?
Why do we use oop?
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 are the advantages of polymorphism?
What is multilevel inheritance?
Why is oop useful?
What is and I oop mean?
write a programe to calculate the simple intrest and compund intrest using by function overlading
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
Why do while loop is used?
What is interface in oop?