Easy
If class B inherits from class A and if class C inherits from class B then does class C inherit from A ?
Author: Eric HostaleryStatus: PublishedQuestion passed 1495 times
Edit
13
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about OOP
8
You need to develop a class for which there should be only one instance throughout your application. Which design pattern should you use for this?7
Can we extend an abstract class in Java?4
Is the following code valid?
class Person {
constructor(name, age) {
this.name = name;
this.age = age;
}
}
const person = new Person('John', 20);
console.log(person.name);
console.log(person.age);3
Can an interface inherit from another interface?3
Is the following code valid?
class Person {
constructor(name, age) {
this.name = name;
this.age = age;
}
}
const person = new Person('John', 20);
console.log(person.name);
console.log(person.age);