JavaScript | Class And Inheritance | Question 10

Last Updated :
Discuss
Comments

Which of the following statements about private fields is true?

They are accessible by subclasses.

They can only be declared using the # syntax.

They can be accessed directly from outside the class.

They can only be used in static methods.

Share your thoughts in the comments