Câu hỏi phỏng vấn Typescript
Câu hỏi

Which access modifiers are implied when not specified?

Câu trả lời

In TypeScript, when no access modifier is specified for class members (properties and methods), the default access modifier applied is public. This means that the members are accessible from anywhere without any restrictions[1][2][4][5][7].

Citations:
[1] https://stackoverflow.com/questions/20696932/which-access-modifiers-are-implied-when-not-specified
[2] https://www.javatpoint.com/typescript-access-modifiers
[3] https://www.studysmarter.co.uk/exp...

junior

junior

Gợi ý câu hỏi phỏng vấn

middle

How to check the type of a variable or constant in TypeScript?

middle

What is the fundamental difference between Optional Chaining ( ?. ) and Non-null assertion operator ( ! )
in TypeScript?

senior

Explain what is Currying in TypeScript?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào