Remembering your object-oriented programming
OOP is a vast field of expertise, and its mastery requires not only study but also time spent applying its principles to real-life software development.
With all the foundational information you learned in this book, it might seem like a mountain you’re just better off not even attempting to climb. However, when you feel that way, take a step back and revisit these key concepts from Chapter 5, Working with Classes, Structs, and OOP:
- Classes are blueprints for objects you want to create in code
- They can contain properties, methods, and events
- They use constructors to define how they are instantiated
- Instantiating objects from a class blueprint creates a unique instance of that class
- Classes are reference types, meaning when the reference is copied it’s not a new instance
- Structs are value types, meaning when the struct is copied a brand-new instance is created
- Classes...