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 polymorphism is used in oops?

0 Answers  


how to find no of instances of an object in .NET?

1 Answers   Infosys,


Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?

4 Answers   EA Electronic Arts,


What is an orthogonal base class?

2 Answers  


WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

1 Answers  


What is class and object in oops?

0 Answers  


what are the ways in which a constructors can be called?

0 Answers  


What is Method overloading?

5 Answers  


create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.

2 Answers   CTS, Delhi University,


What is polymorphism and types?

0 Answers  


What is the main purpose of inheritance law?

0 Answers  


What is abstraction example?

0 Answers  


Categories