Interview Question

Software Developer Interview

What is diff between Abstact and virtual

Answer

Interview Answer

1 Answer

0

This deals with object oriented programming. An ABSTRACT function within a class HAS NO implementation and must be implemented in any classes that inherit from that class. A VIRTUAL function HAS an implementation in that class but can still be overriden in any classes that inherit from that class.

Matt on Sep 24, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.