TypeScript · Lesson 51 of 120
Classes Quiz
Test yourself.
Let's review classes. Pause after each question, and answer before I do.

- Classes quiz
- Pause and think
- Then check
Question 1
Which modifier hides a property from outside the class? Private.
Quick check
Only the class itself can use:
Question 2
How does a class promise to match an interface? With implements.
Quick check
A class matches an interface with:
Question 3
Can you create an abstract class directly with new? No.
Quick check
new on an abstract class:
Question 4
What belongs to the class itself, not each object? Static members.
Quick check
Shared by the whole class:
Summary
Well done. Next, a new section on generics.
Key takeaways- private
- implements
- static
Next up: Why Generics — reusable types