Skip to content

Instantly share code, notes, and snippets.

@hw0k hw0k/index.ts
Created Mar 26, 2020

Embed
What would you like to do?
LID 12
class File implements Input {
getString(): string {
return 'File Input';
}
}
class Monitor implements Output {
writeString(str: string): void {
console.log(`writed ${str} to monitor.`);
}
}
const f = new File();
const m = new Monitor();
Task.copy(f, m);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.