why we are declare the function in the abstract class even
though we are declaring it in Derived class?



why we are declare the function in the abstract class even though we are declaring it in Derived cl..

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

Post New Answer

More OOPS Interview Questions

How to use CMutex, CSemaphore in VC++ MFC

0 Answers   Persistent, TCS,


What is polymorphism and example?

0 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  


Difference between vector and array

2 Answers  


What is the difference between class and structure?

7 Answers  






Write A Program using Single and Multiple Inheritance.

1 Answers  


What is the purpose of polymorphism?

0 Answers  


WHAT'S THE OOPS BASIC OOPS CONCEPTS IN DOTNET

1 Answers  


Why do pointers exist?

0 Answers  


Should you protect the global data in threads? Why or why not?

2 Answers   IBM,


Why is polymorphism important in oop?

0 Answers  


what is the difference between function template and template of function?explain with example.

2 Answers  


Categories