1.

Define Anonymous Classes In Php7?

Answer»

In PHP7, Anonymous classes are those classes that don’t have any name. These anonymous classes are defined using the new class. It can replace full-class DEFINITION. When SIMPLE, one-off OBJECTS are created then anonymous classes are useful. They are internally generated NAMES so we don’t have to give names to these classes. Objects created by same anonymous class are instances of that class.Thus, PHP programming language is a boon for all the PHP developers as the demand for PHP based applications is HIGH.

In PHP7, Anonymous classes are those classes that don’t have any name. These anonymous classes are defined using the new class. It can replace full-class definition. When simple, one-off objects are created then anonymous classes are useful. They are internally generated names so we don’t have to give names to these classes. Objects created by same anonymous class are instances of that class.Thus, PHP programming language is a boon for all the PHP developers as the demand for PHP based applications is high.



Discussion

No Comment Found