why we are declare the function in the abstract class even
though we are declaring it in Derived class?
Answer / vishal
Abstract class is nothing but placeholder for other classes
ie subclass.It defines common shared behavior in abstract
classes and if we need to override we need to define in its
subclass else we can use shared behavior in base class.
Is This Answer Correct ? | 1 Yes | 0 No |
How to use CMutex, CSemaphore in VC++ MFC
What is polymorphism and example?
//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(); }
Difference between vector and array
What is the difference between class and structure?
Write A Program using Single and Multiple Inheritance.
What is the purpose of polymorphism?
WHAT'S THE OOPS BASIC OOPS CONCEPTS IN DOTNET
Why do pointers exist?
Should you protect the global data in threads? Why or why not?
Why is polymorphism important in oop?
what is the difference between function template and template of function?explain with example.