basic php constructs for oop

mcqspedia.com has 5 Question/Answers about Topic basic php constructs for oop

Namespaces defines a area in which an identifier is

Namespaces defines a area in which an identifier is
  • A. Unique
  • B. Same type
  • C. Static
  • D. None of them
  • Correct Answer: Option A

PHP supports

PHP supports
  • A. Public variables
  • B. Private variables
  • C. Protected variables
  • D. All of them
  • Correct Answer: Option D

Constructor function must have a same name as name of a

Constructor function must have a same name as name of a
  • A. Class
  • B. Object
  • C. Method
  • D. Instance
  • Correct Answer: Option A

Ability to recover a class name, member function names, and member variable names from an instance, is called as

Ability to recover a class name, member function names, and member variable names from an instance, is called as
  • A. Encapsulation
  • B. Introspection
  • C. Polymorphism
  • D. Binding
  • Correct Answer: Option B

Namespaces are offered in

Namespaces are offered in
  • A. PHP2
  • B. PHP4
  • C. PHP5
  • D. PHP6
  • Correct Answer: Option D