1.

The practice of creating objects based on predefined classes is often referred to as ______________(a) class creation(b) object creation(c) object instantiation(d) class instantiationThis question was addressed to me in an online quiz.I want to ask this question from Basics of Object-Oriented PHP- 1 topic in chapter Object-Oriented PHP of PHP

Answer»

Correct ANSWER is (d) class INSTANTIATION

To EXPLAIN: In object-oriented programming, classes are the blueprints of php OBJECTS. Classes do not actually become objects until instantiation is done. When someone instantiates a class, it creates an INSTANCE of it, thus creating the object. In other words, instantiation is the process of creating an instance of an object in memory.



Discussion

No Comment Found

Related InterviewSolutions