Professional Documents
Culture Documents
Oops
Oops
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
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
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