As a beginner, you may have heard other programmers talk about ‘boxing’ and ‘unboxing’ and wondered what was going on. Did someone get a gift? Are they moving houses? Turns out, boxing and unboxing are programming concepts that have to do...
How to declare a variable is often the first thing you learn in computer programming. After that, a lot of courses and instructors see fit to let you know computers can do math, and ask you to do things like, “declare...
I’ve had a lot of students get hung up on getters and setters when they first start implementing object-oriented programming principles–especially in C#, because its auto-properties can feel a little too much like magic. In the simplest terms, getters and setters...
The concept of inheritance in object-oriented programming (OOP) allows us to derive classes from other classes–so a child class can “inherit” properties and methods from its parent class, like you may have inherited your eye color from your mom. Inheritance allows...
Polymorphism is one of the core principles of Object Oriented Programming. But what is polymorphism? The word ‘polymorphism’ means ‘having multiple forms’ (from the Greek ‘polýs’, meaning ‘many’, and ‘morphē’ meaning ‘form’, for all of you etymology nerds out there). In...