Learning C# 2005: Get Started with C# 2.0 and .NET Programming (2nd Edition)

6.9. Exercises

Exercise 6-1 .

Draw a class diagram for a class named "vehicle," and show how the classes "car," "truck," and "motorcycle" derive from it.

Exercise 6-2 .

Define a class Book , in which a book has a title, author, and ISBN, and the book can be read or shelved.

Категории