How to overload postfix operator in c++



How to overload postfix operator in c++..

Answer / r.ramakrishna

Defining the variables in the class of a method after the
method will executed.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More OOPS Interview Questions

What are functions in oop?

0 Answers  


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

0 Answers  


suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?

3 Answers   EA Electronic Arts,


write a program to find 2^n+1 ?

0 Answers   CTS,


Can we define a class within the interface?

0 Answers  






What are the valid types of data that the main () can return in C/C++ language

3 Answers  


//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }

1 Answers  


Name an advantage of array over linked list?

24 Answers   GML, IBM, Software Solutions,


What is the difference between a constructor and a destructor?

0 Answers  


What is virtual class and friend class?

5 Answers   IBS, Intel, Wipro,


What is difference between pop and oop?

0 Answers  


why in java first invoke public static void main(String args[]) method????Why not public static void method1(String args[])??

1 Answers  


Categories