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 is abstraction needed?

0 Answers  


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

0 Answers   SRA,


Why do we use oops?

0 Answers  


What is abstraction?

9 Answers  


how to get the oracle certification? send me the answer

0 Answers   Oracle,






What is the difference between the c++ & java?

2 Answers  


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

11 Answers  


What is overloading in oop?

0 Answers  


what are abstract classes and how they impliment , with example

2 Answers  


Why a "operator=(...)" when there is a copy ctor?

2 Answers  


define oops concept with example

1 Answers   Cap Gemini,


What is the difference between static polymorphism and dynamic polymorphism?

0 Answers  


Categories