You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since super.getProperties would return a string starting with "id is" already, it should be excluded from the descendent method's return template string.
class Base {
public id: number;
getProperties() : string {
return `id is ${id}`;
}
}
class Child {
public name: string;
getProperties() : string {
return `id is ${super.getProperties()}, name is ${this.name}`;
}
}
should be
class Base {
public id: number;
getProperties() : string {
return `id is ${id}`;
}
}
class Child {
public name: string;
getProperties() : string {
return `${super.getProperties()}, name is ${this.name}`;
}
}
The text was updated successfully, but these errors were encountered:
since super.getProperties would return a string starting with "id is" already, it should be excluded from the descendent method's return template string.
should be
The text was updated successfully, but these errors were encountered: