Examveda
Examveda

If you omit the visibility keyword in your method declaration, by default the method will be declared as.

A. public

B. private

C. protected

D. friendly

Answer: Option A

Solution(By Examveda Team)

By declaring a method public, you ensure that it can be invoked from outside of the current object.

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept