Introduction
It is a good drill to work on C# 2000 things 20 minutes a time. A few times a month. I did search base through C# 2000 things. I did once, and then I had chance to look into over 20 items related to base class, base keyword.
One by one
I like to go over one by one. Here are the items.
- #331 – Calling a Base Class Constructor Implicitly vs. Explicitly
- #334 – A Base Class Variable Can Refer to Instances of Derived Classes
- #335 – Accessing a Derived Class Using a Base Class Variable
- #343 – Use the new Keyword to Replace a Method in a Base Class
- #344 – Hidden Base Class Member Is Invoked Based on Declared Type of Object
- #345 – Method in Derived Class Hides Base Class Method by Default
- #355 – Use the new Keyword to Replace a Property in a Base Class
- #356 – Hidden Base Class Property Is Used Based on Declared Type of Object
- #357 – Property in Derived Class Hides Base Class Property by Default
- #615 – You Can’t Remove a Base Class Member
- #616 – Base Class Needs to Know If Polymorphism Is Desired
- #617 – The Simplest Way to Call a Method in a Base Class
- #618 – Use the base Keyword to Call A Method in the Base Class
- #619 – Calling the Constructor in a Base Class
- #671 – A Base Class Constructor Can Call a Virtual Method
- #684 – Hidden Base Class Members Aren’t Really Hidden
- #753 – Implicitly Upcast to a Base Class Reference
- #754 – Downcast to a Reference to a Derived Class
- #768 – When to Call the Constructor of a Base Class
- #769 – Pattern – Call a Base Class Method When You Override It
No comments:
Post a Comment