For examples i have two classes:
class Parent1 {
logMessage() {
console.log("this is the first parent class")
}
}
class Parent2 {
showMessage() {
console.log("this is the second parent class")
}
}
Now I want to create a child class the will inherit all the methods from those 2 classes, so the Parent1 and the Parent2.
I went through this question, but the question with the most upvotes didn't work for me. Thank you so much!