Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 577 Bytes

0705.md

File metadata and controls

41 lines (33 loc) · 577 Bytes

Considering the following code which of the statements below is true ?

class entity {
    public $name;
}
$human = new entity();
$dog = new entity();
$human->name = 0;
$dog->name = "";
  • A)
($human == $dog)
  • B)
($human->name == $dog->name)
  • C)
($human === $dog)
  • D)
($human->name instanceof $dog->name)
Answer

Answer: A, B