Quantcast
Browsing latest articles
Browse All 7 View Live

polymorphism

You can make a polymorphism if you have any base class. Think ahead.

View Article


polymorphism

Hi NikitaJohnson,As mentioned before, in C# you can have two different behaviors:Overriding (using virtual in base class and override in subclass)-> The method implementation is replaced ->...

View Article


polymorphism

There are two types of polymorphism:1. Compile Time Polymorphism2. Runtime PolymorphismWithout Virtual - It is compile time polymorphismWith Virtual - It is Runtime PolymorphismPriya.Dot NetWisen...

View Article

polymorphism

Yes, you achieve polymorphism by using virtual methods in C#, i.e. if you declare a method virtual in a base class you can override this method in a derived  class to change it's behavior.If the method...

View Article

polymorphism

You can also extend as well as over-ride or implement.So you can inherit from some base class and add a property or method.That's still polymorphism.Note also that Interface in general OO terms has a...

View Article


polymorphism

Polymorphism describes a pattern in object oriented programming in which classes have different functionality while sharing a common interface.If you, like in your example, have a base class with a...

View Article

polymorphism

Hello! i have a question in understanding the principle of polymorphism. is it polymorphism if the metode in a base class is virtual and "overriden" in a derived class? So if it wasent for virtual it...

View Article
Browsing latest articles
Browse All 7 View Live