Skip to content

Instantly share code, notes, and snippets.

View shian15810's full-sized avatar

Chee Shian Chuah shian15810

  • Taiwan
  • 15:17 (UTC +08:00)
View GitHub Profile
class Dog {
protected bark(): void {
// console.log("bark");
this.barkMany(1);
}
protected barkMany(n: number): void {
for (let i = 0; i < n; i++) {
// this.bark();