Lubinik Learning

Training mode

Object-Oriented PHP

Time remaining:

0 / 20 answered

  1. 1. What is a PHP class?

    What is a PHP class?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  2. 2. What is an object?

    What is an object?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  3. 3. Which keyword creates an object from a class?

    Which keyword creates an object from a class?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  4. 4. What is a property?

    What is a property?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  5. 5. What is a method?

    What is a method?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  6. 6. What does $this refer to inside a non-static method?

    What does $this refer to inside a non-static method?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  7. 7. When is __construct() normally called?

    When is __construct() normally called?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  8. 8. What does public visibility mean?

    What does public visibility mean?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  9. 9. What does private visibility mean?

    What does private visibility mean?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  10. 10. Who can access a protected member?

    Who can access a protected member?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  11. 11. What is encapsulation?

    What is encapsulation?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  12. 12. What does class Child extends Parent express?

    What does class Child extends Parent express?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  13. 13. What does an interface primarily define?

    What does an interface primarily define?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  14. 14. Which keyword declares that a class follows an interface?

    Which keyword declares that a class follows an interface?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  15. 15. Why declare a class abstract?

    Why declare a class abstract?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  16. 16. What is a PHP trait used for?

    What is a PHP trait used for?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  17. 17. What is a static method associated with?

    What is a static method associated with?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  18. 18. What does final prevent when applied to a method?

    What does final prevent when applied to a method?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  19. 19. What is constructor dependency injection?

    What is constructor dependency injection?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.

  20. 20. What does composition favor?

    What does composition favor?
    Hint

    Focus on the responsibility of the language feature rather than memorizing punctuation.