Before we start: Code used in this article
We continue with the guys at Dart, in this short article will show the code that we use later in the following article, it’s some guys with a small hierarchy and some variables:
class Mammal {}
class Cow extends Mammal { String moo() => 'moo!'; }
class Pig extends Mammal { String oink() => 'oink!'; }
Mammal mammal = new Mammal();
Cow cow = new Cow();
Pig pig = new Pig();
Fuente: Dartlang

Español


Recent Comments