UNPKG

oop-console-app

Version:

basic concepts of Object Oriented Programming

19 lines (14 loc) 292 B
import Person from "./person.js"; export default class Student extends Person { public _name: string; constructor() { super(); this._name = ""; } get name() { return this._name; } set name(name: string) { this._name = name; } }