InterviewSolution
Saved Bookmarks
| 1. |
Which keyword precedes a method name?(a) method(b) function(c) public(d) protectedI had been asked this question in my homework.My question is based upon Object Basics-1 topic in division Objects and Databases in PHP of PHP |
|
Answer» RIGHT option is (b) function The explanation is: A METHOD declaration resembles a function declaration. The function KEYWORD precedes a method name, followed by an optional list of ARGUMENT variables in PARENTHESES. |
|