Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 835 Bytes

0124.md

File metadata and controls

16 lines (13 loc) · 835 Bytes

Which of the following statements correctly explains the use of instanceof and type hinting? Each correct answer represents a complete solution (Choose three).

  • A) The instanceof operator lets a programmer inspect all of the ancestor classes of the object, as well as any interfaces.
  • B) The instanceof operator can be used to check if the variables are an instance of a particular class.
  • C) Type hinting is a feature due to which functions can specify what type of parameters must be provided to the functions.
  • D) The instanceof operator can be used to check if the variables are the member of an abstract class.
Answer

Answer: A, B, C