so here is the code first off is the construct function after that is the parents function
public construct() //child
{
super.construct;
}
protected construct() //parent
{
}
so the problem is that i DONT get an error even do i gotta need one this is because my class mate gets one and its anoying for him i use visual studio code with typescript ive tyed multiple extensions but nothing worked so far down bellow i added an pic of how it suposed to look like
if you know i will be happy to recieve ur help if u got the same lets share the pain :)
the struct when you want to extend a class should be like:
class Parent {
constructor(){
console.log('parent constructor')
}
test(){console.log(1)}
}
class Child extends Parent {
constructor(){
console.log('child constructor')
super(); //super() will call parent's constructor again
}
}
let p = new Parent();
let c = new Child();
c.test(); //use super to let the child class can use parents property
hope this is helpful