Quiz-10 Question 10- Ambiguity

in this above question the answer is showing as “Extends”. but javascript is case sensitive so it should be “extends” . and there is also an option “None Of the Above” so it creates ambiguity. @shivam-ta-fsr

1 Like

@manaskumarpanigrahi6 Don’t worry!
Here’s Detail explaination!
The keyword to inherit a parent class to a child class in object-oriented programming (OOP) is “extends”. In Java, for example, you would declare a child class that extends a parent class as follows:

public class ChildClass extends ParentClass {
   // ChildClass code goes here
}

The “extends” keyword is used to establish the inheritance relationship between the two classes.

I do get your point that the answer should be “extends” but in the option ‘Extends’ . And in javascript “extends” not equals to “Extends”. And in the option there is also “None of the above” which is more plausible if you consider the above case.

1 Like

@manaskumarpanigrahi6 Yes you are correct.None of the above is the correct answer. will consider about this and response you soon.

1 Like

is there any update on this?

1 Like