Re: Inheritance again....
From: Rob Walker (dd)
Date: 12/03/03
- Next message: Chris Smith: "Re: default value for console input, pleaes help!"
- Previous message: Denis: "default value for console input, pleaes help!"
- In reply to: Rob Walker: "Inheritance again...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 3 Dec 2003 16:18:35 -0000
"Rob Walker" <dd> wrote in message
news:3fcc928b$0$11178$cc9e4d1f@news.dial.pipex.com...
> Thanks to the guy who replied to my last post but yet again I haven't got
a
> clue!
> Basically different modes of transport have some common attributes and
some
> particular to themselves.
> They all have colour, model, make, length and cost.
> skateboard also has weight and width
> bicycle has all of the above plus height and gears
> motor bike has engine, acceleration, fuel and reg
> car has all that motorbike has plus no. of passengers.
>
> Am I anywhere near right? (It doesn't compile at the moment, something to
do
> with the super(); lines)
<code snipped>
Thanks to all that replied, I've finally got it all sorted using a more
simple approach.
Cheers
Rob
- Next message: Chris Smith: "Re: default value for console input, pleaes help!"
- Previous message: Denis: "default value for console input, pleaes help!"
- In reply to: Rob Walker: "Inheritance again...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|