NashTech Insights

Polymorphism

Posts by categories

Posts by tags

close up photo of person typing on laptop

Exploring the Power of Type Classes in Scala

Have you ever found yourself wishing for a way to write generic code that seamlessly works with different types, without the need for inheritance or modifying existing classes? If so, Scala’s type classes might be the answer you’ve been looking for. Introduction Scala, a popular programming language on the JVM, boasts an expressive type system …

Exploring the Power of Type Classes in Scala Read More »

monitor, binary, binary system-1307227.jpg

Common Misconceptions in C# and .NET: Understanding the Virtual and Override techniques in C#

Let us properly comprehend the concepts of polymorphism, C# virtual, and override techniques. In this example, we have an abstract class called Car, which includes a protected property named Speed. It also contains an abstract method called Accelerate, which increases the speed by ten whenever invoked. Additionally, there is a non-virtual implemented method called Stop, …

Common Misconceptions in C# and .NET: Understanding the Virtual and Override techniques in C# Read More »