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 find the largest of given numbers in an array

2 Answers  


Write pseudo code for push in a stack?

2 Answers   emc2,


what is different between oops and c++

0 Answers   IIT,


#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile

1 Answers   CTS, Wipro,


i got a backdoor offer in process global,Bangalore..Can i work with it?

0 Answers  






WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.

11 Answers  


1. Define a class.

6 Answers  


What is polymorphism explain?

0 Answers  


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

2 Answers  


How to improve object oriented design skills?

0 Answers  


Which keyword is written to use a variable declared in one class in the other class?

5 Answers   TCS,


Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?

5 Answers  


Categories