UNPKG
oop-console-app
Version:
latest (1.0.0)
1.0.0
basic concepts of Object Oriented Programming
github.com/husnain/basic-oop
husnain/basic-oop
oop-console-app
/
student.ts
19 lines
(14 loc)
•
292 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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; } }