Chapter quiz · OOP & Classes

Test what you learned.

8 questions on OOP & Classes. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

TS OOP & Classes — Chapter Quiz

Eight questions on classes, modifiers, abstract, decorators, enums, and namespaces.

0/ 8
  1. Question 1
    1

    What's the difference between TS private and JS #field?

  2. Question 2
    2

    What does implements do?

  3. Question 3
    3

    An abstract class can be instantiated directly with new.

  4. Question 4
    4

    What's special about this constructor parameter?

    class Point {
      constructor(public x: number, public y: number) {}
    }
    
  5. Question 5
    5

    Which is the modern TypeScript-recommended replacement for enum?

  6. Question 6
    6

    An accessor that lets callers read a derived property without parens is called a ___.

  7. Question 7
    7

    Which keyword marks a class member as accessible to subclasses but not outside the class hierarchy?

  8. Question 8
    8

    What is the modern (Stage 3) decorator syntax used for?

Pick an answer — instant feedback as you go.