why we are declare the function in the abstract class even
though we are declaring it in Derived class?
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 |
Why polymorphism is used in oops?
how to find no of instances of an object in .NET?
Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?
What is an orthogonal base class?
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is class and object in oops?
what are the ways in which a constructors can be called?
What is Method overloading?
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?
What is the main purpose of inheritance law?
What is abstraction example?