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 it is called runtime polymorphism?
Why is polymorphism important in oop?
Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.
what is function overloading..?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
When is a memory allocated to a class?
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?
Why do we use oop?
What is the point of polymorphism?
Which is not an object oriented programming language?
Explain polymorphism? What r the types of polymorphism? pls give examples?
Can java compiler skips any statement during compilation time?