We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0516f34 commit 2b861b6Copy full SHA for 2b861b6
1 file changed
es6/module2.html
@@ -19,8 +19,17 @@
19
console.log(`${this.name} is a really cool ${this.title}`);
20
}
21
22
- let object = new Person("Seun Daramola", "Computer Instructor");
23
- object.displayData();
+ // let object = new Person("Seun Daramola", "Computer Instructor");
+ // object.displayData();
24
+
25
+ //Class Inheritance Introduced with es6
26
+ class Alien extends Person {
27
+ constructor(){
28
+ super ("Seun Daramola", "guy");
29
+ }
30
31
+ let alien = new Alien();
32
+ alien.displayData();
33
34
</script>
35
0 commit comments