Polymorphism, a little overview with code samples
Polymorphism basically means that one thing can take many forms, and this is particularly useful for programmers, as it allows us to treat similar types of o...
Polymorphism basically means that one thing can take many forms, and this is particularly useful for programmers, as it allows us to treat similar types of o...
Inheritance is a practice of one thing extending another. So you can more specific subclasses of a class. Inheritance is available in most programming langua...
Encapsulation is a fantastic OOP concept of being able to shield class state via the use of accessor methods.
There are times when developing, when you need to do similar behaviour but with differing input arguments, for example you may have a method that prints some...
If statements are great, but sometimes they are just not very practical when you have to test for more than a handful of conditions, have a look at this very...