Programmer-defined classes

In this course, we will write programs using user interface classes that Microsoft provides with the VS.NET development system, but programmers also define problem-specific classes. For example, if you were going to write a program for an online store, you might define a class called Product. Some of the properties of a Product would be:

All Products would have these properties.

If your store were going to sell books, you could define a second class called Book. The Book class would inherit the properties of the Product class, and add the following:

We will not be creating programmer-defined classes in this introductory course, but they further illustrate the ideas of class, object, property and value.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.