transport::Bicycle class

Standard bicycle class. This is a rather long brief line, it occupies the whole paragraph…

Bicycle implements a standard bicycle. Bicycles are a useful way of transporting oneself, without too much effort (unless you go uphill or against the wind). If there are a lot of people on the road, you can use transport::Bicycle::RingBell to ring your bell (note, not all bicycles have bells!).

But here’s some additional documentation for the Bicycle class.

Derived classes

class transport::MountainBike
Mountain bike implementation of a transport::Bicycle.
class transport::RacingBike final
Racing bike class.

Constructors, destructors, assignment and conversion operators

~Bicycle() pure virtual
Pure virtual destructor

Functions

void PedalHarder() virtual
PedalHarder makes you go faster (usually).
void RingBell() virtual
Ring bell on the bike.

Variables

int id private
Something to identify a bike by

Function documentation

void RingBell() virtual

Ring bell on the bike.

RingBell rings the bell on the bike. Note that not all bikes have bells.