Vidyalelo
PHP · Q18

Object Oriented Concept

Programming · PHP · question 18

Q18

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
Answer
D.
set

Answer: Option C

Solution

Answer: Option C
Solution:
Self is to classes what the $this pseudo-variable is to objects.