Chapter 8. Class Begins
In this chapter: |
---|
What Is a Class?
Think back to your childhood and picture yourself sitting in a sandbox, playing with molds and wet sand, and making all kinds of shapes. If sandboxes and wet sand didn’t appeal to you, perhaps you used molds and clay. You might find this hard to believe, but back then you actually used the concept of classes for the first time. Basically a class is just a mold. The mold determines what the objects that it creates will look like, but the mold itself is not one of the objects; it’s just a template—a class. When you want to create an object, you use the mold to ...
Get Microsoft® Visual Basic® 2010 Developer’s Handbook 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.