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('Some sound'); } } class Dog extends Animal { @override void makeSound() { print('Woof'); } } void main() { Animal pet = Dog(); pet.makeSound(); print(pet is Dog); print(pet is Animal); }
Woof
true
true