diff between Virtual mathod and abstract method?
Answer / pawan kumar
Virtual methods have an implementation and provide the derived classes with the option of overriding it. Abstract methods do not provide an implementation and force the derived classes to override the method. So, abstract methods have no actual code in them, and subclasses HAVE TO override the method.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is memory leak and memory corruption?
In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance
why to use operator overloading
C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline textbox. You need to parse the above input, store values for A,B&c. And you have to display the value of C.
Write a program to accept a number and to print numbers in pyramid format? for eg:for a no. 5 1 212 32123 4321234 543212345
Which keyword is written to use a variable declared in one class in the other class?
What is polymorphism in oops with example?
what is the difference between class and structure in C++?
What are benefits of oop?
What is polymorphism give a real life example?
difference between static and non-static variables?
write a program which best describes polymorphism in real world?
2 Answers CTS, Infosys, NexGen,