From the course: Visual Basic Essential Training

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Object inheritance

Object inheritance

- [Instructor] What we are looking at is classic object-oriented programming inheritance. This is where we have a base class and a drive class, sometimes called a parent and a child class. I'm looking at something called a class diagram. This shows the relationships between my types. You can add one of these to your visuals, to your project, and then all you need to do to get this kind of diagram is go to your solution explorer, take the file that has the class that you're interested in, and drag it onto the designer, and it will generate a similar looking class diagram. We're talking about base types and drive types. You can see that relationship here in the diagram. These arrows point towards the base class, so the card is the base class of all these other cards. Now, there is another base class above the card class that I'm not showing here, but I can show it by going to show base class, and that is the object class. This is the base class for everything in .NET, so we typically…

Contents