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 |
what is function overloading..?
What do you mean by stack program? Get me an example stack program?
what is SPL in c++.
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.
What is DeadlyDiamondDeathProblem ?
difference between abstraction and encapsulation with progarammatic eg. hi,just recently i went for an interview .The interviewer asked what is the difference between abstraction and encapsulation with programmatic eg. I gave the answer as encapsulation mean hiding the relevant data which is not useful for the user, eg a electric fan .hiding the information how the electricity is converted into machanical energy. abtraction showing only the relevant data to the user eg electric fan. it look ,its color ,it design etc only relevant data. Then the interviewer asked me, give me some programmic eg .I Said Let assume a web form having control like textbox,button etc. The user can view textbox,button etc this is the eg of abstraction and when the user click on the button how he is redirected is not known by the user is the eg of the encapsulation. Am I Correct .was the answer given by me is perfect .now i am planing to go for an another interview should i give the same answer.IF not please suggest me a better answer.with some good eg Please help
Give two or more real cenario of virtual function and vertual object
What is polymorphism in oops with example?
write a short note on Overloading of Binary Operator?
How to deploy web appliction in web logic ?
can we make a class static without using static keyword?
why the argument is passed by reference to a copy constructor?example?