Looking for ООП \ Програмування (JS) \ Вовкодав О.В. test answers and solutions? Browse our comprehensive collection of verified answers for ООП \ Програмування (JS) \ Вовкодав О.В. at elr.tnpu.edu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
class Shape {constructor(color) {
this.color = color;
}
describe() {
return \`I am a \${this.color} shape\`;
}
}
class Circle extends Shape {
constructor(color, radius) {
super(color);
this.radius = radius;
}
}
const c = new Circle('red', 5);
console.log(c.describe());