Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
class Animal { void makeSound() { print('The animal makes a sound'); } } class Cat extends Animal { @override void makeSound() { print('Meow'); } } class Cow extends Animal { @override void makeSound() { print('Moo'); } } void main() { Animal().makeSound(); Cat().makeSound(); Cow().makeSound(); }
The animal makes a sound
Meow
Moo