class Doughnut { fn cook() { print("Fry until golden brown."); } } class BostonCream < Doughnut {} BostonCream().cook();