We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9936fb commit f2589a4Copy full SHA for f2589a4
3 files changed
oop/module/index.js
@@ -0,0 +1,7 @@
1
+import { Teacher } from './teacher';
2
+
3
+const teacher = new Teacher("Mbr-Sagor", "CSE");
4
+teacher.tech();
5
+teacher.walk()
6
+// const combined = [...teacher.name, " ", ...teacher.subject]
7
+console.log(teacher.name, teacher.subject);
oop/module/person.js
@@ -0,0 +1,14 @@
+export class Person {
+ constructor(name) {
+ this.name = name;
+ }
+ walk() {
+ console.log("Walk");
8
9
+}
10
11
+// const person = new Person("Sagor");
12
+// console.log(person);
13
+// person.walk();
14
oop/module/teacher.js
@@ -0,0 +1,13 @@
+import { Person } from './person';
+export class Teacher extends Person {
+ constructor(name, subject) {
+ super(name);
+ this.subject = subject;
+ tech() {
+ console.log("Tech");
0 commit comments