51. Which one of the following is the right way to define a constant?
52. Which one of the following is the right way to call a class constant, given that the class is mathFunction?
53. Which one of the following is the right way to invoke a method?
54. Which of the following is/are the right way to declare a method?
1. function functionName() { function body }
2. scope function functionName() { function body }
3. method methodName() { method body }
4. scope method methodName() { method body }
1. function functionName() { function body }
2. scope function functionName() { function body }
3. method methodName() { method body }
4. scope method methodName() { method body }
55. Which of the following method scopes is/are not supported by PHP?
1. private
2. final
3. static
4 abstract
1. private
2. final
3. static
4 abstract
56. Which method scope prevents a method from being overridden by a subclass?
57. Which of the following statements is/are true about Constructors in PHP?
1. PHP 4 introduced class constructors.
2. Constructors can accept parameters.
3. Constructors can call class methods or other functions.
4. Class constructors can call on other constructors.
1. PHP 4 introduced class constructors.
2. Constructors can accept parameters.
3. Constructors can call class methods or other functions.
4. Class constructors can call on other constructors.
58. PHP recognizes constructors by the name_________
59. Which version of PHP introduced the instanceof keyword?
60. Which one of the following functions is used to determine whether a class exists?
Read More Section(Object Oriented Concept)
Each Section contains maximum 100 MCQs question on Object Oriented Concept. To get more questions visit other sections.