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

Why do we use encapsulation in oops?

0 Answers  


what is the difference between virtual function and destoctor?

1 Answers  


What is class and example?

0 Answers  


Is react oop?

0 Answers  


How do you make derived class as an abstract class?

1 Answers   Convergys, TCS,






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

11 Answers  


what is inline function?

3 Answers  


What type of loop is a for loop?

0 Answers  


what is SPL in c++.

1 Answers  


Can you inherit a private class?

0 Answers  


Can we have a private constructor ?

12 Answers   HSBC, Ness Technologies, TCS, Wipro,


How do you explain polymorphism?

0 Answers  


Categories