o1.excursion

package o1.excursion
Keywords

Type members

Classlikes

class Excursion(val name: String, val limit: Int)

The class Excursion represents group trips that would-be participants need to sign up for in advance.

The class Excursion represents group trips that would-be participants need to sign up for in advance.

Value parameters:
name

the name of the excursion

limit

the maximum number of people that can participate

Value members

Concrete methods

A small program that uses the class Excursion.

A small program that uses the class Excursion.