import { Person } from "../Person";
export class ConnorBeach extends Person {
public name: string;
public age: number;
public county: string;
public hobbies: string[];
public constructor() {
this.name = "Connor Beach";
this.age = 23;
this.county = "Herefordshire, UK";
this.hobbies = ["Programming", "Gaming", "Maintenance"];
this.introduce();
}
private introduce() {
return console.log(`Hello, my name is ${this.name}, I am ${this.age} years old and live in ${this.county}. My hobbies are ${this.hobbies.join(", ")}!`);
}
}
b1nzeex Goto Github PK
Name: Connor Beach
Type: User
Location: United Kingdom