Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > BOOK: Beginning Visual C# 2005
BOOK: Beginning Visual C# 2005
This is the forum to discuss the Wrox book Beginning Visual C# 2005 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White; ISBN: 9780764578472
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 22nd, 2007, 01:04 AM
Registered User
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 8 End of Chapter Exercises

I am new to C# and Object-Oriented Programming for that matter.

Right now I'm going over the exercises for Chapter 8, specifically Exercise 4.

The first instruction is to create an abstract class called "HotDrink"

The third step is to create a class called "CupofCoffee" that derives from "HotDrink"

Now, in the example from earlier in the chapter, when the base class is abstract, then the derived classes must implement the abstract members.

This being the case, in Exercise 4, shouldn't the class "CupOfCoffee" have methods Drink(), AddMilk() and AddSugar() listed in their members since they are derived from an abstract class?

I'm just trying to understand, any help is much appreciated!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.