Lesson 10: Properties

This lesson teaches C# Properties. Our objectives are as follows: Understand What Properties Are For. Implement a Property. Create a Read-Only Property. Create a Write-Only Property. Create an auto-implemented property. Overview of Properties Properties provide the opportunity to protect a field in a class by reading and writing to it through the property. In other … Continue reading “Lesson 10: Properties”

Lesson 9: Polymorphism

This lesson teaches about Polymorphism in C#. Our objectives are as follows: Learn What Polymorphism Is. Implement a Virtual Method. Override a Virtual Method. Use Polymorphism in a Program. Another primary concept of object-oriented programming is Polymorphism. It allows you to invoke derived class methods through a base class reference during run-time. This is handy … Continue reading “Lesson 9: Polymorphism”

Lesson 8: Class Inheritance

This lesson teaches about C# Inheritance. Our objectives are as follows: Implement Base Classes. Implement Derived Classes. Initialize Base Classes from Derived Classes. Learn How to Call Base Class Members. Learn How to Hide Base Class Members. Inheritance is one of the primary concepts of object-oriented programming. It allows you to reuse existing code. Through … Continue reading “Lesson 8: Class Inheritance”

How To: Joining and Splitting Strings

Introduction When developing programs that interoperate with external systems, it’s often necessary to process data in a common format. For example, a program may wish to process data from an Excel spreadsheet. Excel has the capability to export a worksheet in Comma Separated Value (CSV) format. Using the string Split() method allows you to extract … Continue reading “How To: Joining and Splitting Strings”