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 do we use encapsulation in oops?
what is the difference between virtual function and destoctor?
What is class and example?
Is react oop?
How do you make derived class as an abstract class?
WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.
what is inline function?
What type of loop is a for loop?
what is SPL in c++.
Can you inherit a private class?
Can we have a private constructor ?
12 Answers HSBC, Ness Technologies, TCS, Wipro,
How do you explain polymorphism?