RacingBike class final
Racing bike class.
Contents
- Reference
RacingBike
is a special kind of bike which can go much faster
on the road, with much less effort (even uphill!). It doesn’t make
sense to call transport::RacingBike::RingBell
on a racing bike for they don’t have bells.
Base classes
-
class transport::
Bicycle abstract - Standard bicycle class. This is a rather long brief line, it occupies the whole paragraph…
Behavior
- void PedalHarder(double speed)
- An overloaded function, doesn’t override
transport::Bicycle::PedalHarder
. - void PedalHarder() override
- @inherit
- void RingBell() override
RingBell
is not implemented.
Properties
- enum class GearSystem: int{ expensive, cheap }
- What kind of gears can a
RacingBike
have? more... - transport::RacingBike::GearSystem gearSystem = GearSystem::expensive
- What kind of gears does this racing bike have?
Enum documentation
enum class GearSystem: int
What kind of gears can a RacingBike
have?
Enumerators | |
---|---|
expensive = 0 | These are the good gears, or maybe they're just overpriced |
cheap = 1 | These gears won't last long |