Abstract Method:
Abstract method specified by “abstract” keyword.
An abstract method contains no definition. Derived class must implement the abstract methods.
Object cannot be created for abstract class. That is abstract class can not be instantiated.
Virtual Method:
Virtual method specified by “virtual” keyword.
Used to implement “Run-Time” polymorphism.
Derived classes not forced to implement the “Virtual” methods that is available in Base class.
The process of redefine the virtual method in a derived class called as “Method Overridding”.
0 comments :