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 |
What are functions in oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
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?
write a program to find 2^n+1 ?
Can we define a class within the interface?
What are the valid types of data that the main () can return in C/C++ language
//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(); }
Name an advantage of array over linked list?
24 Answers GML, IBM, Software Solutions,
What is the difference between a constructor and a destructor?
What is virtual class and friend class?
What is difference between pop and oop?
why in java first invoke public static void main(String args[]) method????Why not public static void method1(String args[])??