What is operator overloading? Give Example
Answer Posted / karthik
A single operator is used to perform diff fuction in a
program is known as operator overloading..
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is encapsulation process?
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's the basic's in dot net
What are the 3 pillars of oop?
What is purpose of inheritance?
Why do we use inheritance?
Why do pointers exist?
Can a varargs method be overloaded?
What is byval and byref? What are differences between them?
What is polymorphism and its types?
What is the advantage of oop over procedural language?
What is the fundamental idea of oop?
Write a program to reverse a string using recursive function?
What are the three parts of a simple empty class?