by Janice Friedman | Jun 8, 2016 | Lessons
Earlier in this tutorial, you learned about two of the important principles of object-oriented programming, Inheritance, and Polymorphism. Now that you’ve seen much of the syntax of C#, I’ll show you how C# supports the another of the object-oriented...
by Janice Friedman | Jun 8, 2016 | Lessons
This lesson explains how to use C# attributes. Our objectives are as follows: Understand what attributes are and why they’re used Apply various attributes with multiple or no parameters Use assembly, type member, and type level attributes Why Attributes?...
by Janice Friedman | Jun 8, 2016 | Lessons
This lesson teaches how to handle exceptions in your C# programs. Our objectives are as follows: Learn what an exception is Implement a routine with a try/catch block Release resources in a finally block Exceptions Exceptions are unforeseen errors that happen in your...
by Janice Friedman | Jun 8, 2016 | Lessons
This lesson introduces delegates and events. Our objectives are as follows: Understand What a Delegate Is Understand What an Event Is Implement Delegates Fire Events Delegates During previous lessons, you learned how to implement reference types using language...
by Janice Friedman | Jun 8, 2016 | Lessons
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...
by Janice Friedman | Jun 8, 2016 | Lessons
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...