adplus-dvertising
frame-decoration

Question

Destruct ( ) function is used to call a

a.

Constructor

b.

Destructor

c.

Object

d.

Method

Posted under Object Oriented PHP PHP

Answer: (b).Destructor

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Destruct ( ) function is used to call a

Similar Questions

Discover Related MCQs

Q. PHP does not support multiple inheritance but it supports

Q. The practice of separating the user from the true inner workings of an application through well-known interfaces is known as _________

Q. Which of the following term originates from the Greek language that means “having multiple forms,” defines OOP’s ability to redefine, a class’s characteristics?

Q. The practice of creating objects based on predefined classes is often referred to as..

Q. Which one of the following property scopes is not supported by PHP?

Q. Which one of the following can be used to instantiate an object in PHP assuming class name to be Foo?

Q. Which one of the following is the right way to define a constant?

Q. Which one of the following is the right way to call a class constant, given that the class is mathFunction?

Q. Which one of the following is the right way to invoke a method?

Q. Which of the following is/are the right way to declare a method?

i) function functionName() { function body }
ii) scope function functionName() { function body }
iii) method methodName() { method body }
iv) scope method methodName() { method body }

Q. Which of the following method scopes is/are not supported by PHP?

i) private
ii) final
iii) static
iv) abstract

Q. Which method scope prevents a method from being overridden by a subclass?

Q. Which of the following statements is/are true about Constructors in PHP?

i) PHP 4 introduced class constructors.
ii) Constructors can accept parameters.
iii) Constructors can call class methods or other functions.
iv) Class constructors can call on other constructors.

Q. PHP recognizes constructors by the name_________

Q. Which version of PHP introduced the instanceof keyword?

Q. Which one of the following functions is used to determine whether a class exists?

Q. Which one of the following functions is used to determine object type?

Q. Which one of the following keyword is used to inherit our subclass into a superclass?

Q. Which keyword is used to refer to properties or methods within the class itself?

Q. Which keyword allows class members (methods and properties) to be used without needing to instantiate a new instance of the class?