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.
Answers were Sorted based on User's Feedback
Answer / guest
can anyone tell me this answer??? please its urgently
required....
| Is This Answer Correct ? | 2 Yes | 3 No |
What is the problem with multiple inheritance?
What are properties in oop?
When not to use object oriented programming?
What is class encapsulation?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
difference between overloading and overridding
should we use linear search or binary search if elements are placed in random order or mixed?in both cases? i need a little bit detail ans?thnks
Program to print 0 to 9 in cross order
How do you make derived class as an abstract class?
What is meant by oops concept?
what are the ways in which a constructors can be called?
1.explicit call for destructor 2.calling function inside a constructor. 3.base *b-new derived delete b; 4.delete p what it will delete. 5.size of base class and derived class int i,in base class and int j in derived. 6.int i-20 int main() { int i =5; printf("%d".::i); { int i =10; printf("%d".::i); } } 7.object slicing 8.new 9.function overloading(return type). 10.class base() { virtuval fun() { ----- } } class derivied:public base() { fun() { ----- } } int main() { derived d; } 11.how static function will call in C++? 12.default structures are in C++? 13.constructors should be in public . 14.virtuval constructor not exist. 15.multilevel inhritence. destructor order.