Please create for C please not another programming language

Please create for C# please not another programming language

Create an example where you have a base class A and a derived class B. class A has a method called func which has the following prototype

public virtual void func()

Create class B such that it replaces the functionality of the func method with new functionality.

Solution

Overriding known as run time polymorphism or dynamic polymorphism. Method overriding means same method names with same signatures.

In this we can override a method in base class by creating similar function in derived class this can be achieved by using inheritance principle and by using “virtual &override” keywords

Please create for C# please not another programming language Create an example where you have a base class A and a derived class B. class A has a method called

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site