can you give the dynamic polymorphism types?
Answers were Sorted based on User's Feedback
Dynamic polymorphism can be method overriding in java and pure virtual functions in C++. In this the method name, type signature, and parameter list remains the same but works in a different manner based on different invocations.
| Is This Answer Correct ? | 6 Yes | 0 No |
Why many objects can working together? How objects working togetherM I want to see example code.
What is difference between function overloading and overriding?
What is the different between Applet and Application?
Explain the concepts involved in Object Oriented programming.
//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(); }
When is an object created and what is its lifetime?
Child cObj = new Parent() Wahts the output ?
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.
2 Answers CTS, Delhi University,
c++ is a pure object oriented programming or not?
2. Give the different notations for the class.\
How is polymorphism achieved?
what is the main difference between sizeof() operator in c and c++