Archived
Among the following propositions, which are the basic principles of OOP ?
-1
Community Evaluations
Auteur anonyme
28/04/2023
C'est une trÚs mauvaise question, ou une trÚs mauvaise traduction. Toutes les réponses conviennent, son redondantes si l'on en choisi plusieurs et/ou manquent de concepts quand on en choisi une seule.
Similar QuestionsMore questions about OOP
13
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);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?