Reexamining the Role of Classes and Objects

In Hour 2 we discussed the ideas behind object-oriented programming. To refresh your memory, object-oriented programming is a programming paradigm in which the object is a key construct of the programming language. Objects contain methods and properties, the properties defining the state of the object, and the methods being called to have the object perform various actions.

Recall that in Hour 2 we described object-oriented programming using a car as an analogy. The properties of the car were such things as make, model, and color, while its methods were drive, reverse, turn, and so on.

The list of properties ...

Get SAMS Teach Yourself ASP.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.