You are on page 1of 1

Virtual Keyword

virtual keyword help us to define some logic in parent class which can be
overridden in the child class

Overload()
same method name with same class in different signature

Overriding ()
Parent child relation

Polymorphism()
its an ability of an object to act differently under different condition
without inheritance polymorphism not work

static Polymorphism - method overloading


Dynamic Polymorphism - Method Overriding

Abstract class
Abstract class is an hal defined class in which some define in parent class and
some implementation in child class
compalusry to implement in child class

are abstract method virtual?


yes

Interface
Whenever we want to declare all the members in current class and want to implement
all the members in future classes then we will declare particular class as
interface.
can't write logic in interface
interface method is only public ,can't declare private

You might also like