Skip to content

Instantly share code, notes, and snippets.

@Dornhoth
Created November 29, 2019 17:35
Show Gist options
  • Save Dornhoth/979a16ff3bbf9ffc0d3ca33303514175 to your computer and use it in GitHub Desktop.
Save Dornhoth/979a16ff3bbf9ffc0d3ca33303514175 to your computer and use it in GitHub Desktop.
interface Person {
greet(): string;
}
class Student implements Person {
public greet(): string {
return 'Hi!';
}
}
class Teacher implements Person {
public greet(): string {
return 'Hello!';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment