Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface ClockInterface {
- currentTime: Date;
- setTime(d: Date);
- }
- class Clock implements ClockInterface {
- currentTime: Date;
- setTime(d: Date) {
- this.currentTime = d;
- }
- constructor(h: number, m: number) { }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement