Examveda
Examveda

Which keyword is used to access a static method or property from within the same class(rather than from child)?

A. static

B. strat

C. self

D. set

Answer: Option C

Solution(By Examveda Team)

Self is to classes what the $this pseudo-variable is to objects.

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept