Object Oriented Concept - Study Mode
[#61] In . . . . . constructors, it is important to remember that you have to call the parent constructor explicitly.
Correct Answer
(D) subclass
[#62] Constructor and destructor methods have no . . . . . . and are called automatically - they cannot be called explicitly and consequently their declarations need no access specifier.
Correct Answer
(C) return value
[#63] Unlike constructors, you cannot pass information to a destructor, because you are never sure when its going to be run.
Correct Answer
(A) TRUE
[#64] You can invoke class constructors that don’t have any relation to the instantiated object by simply prefacing _constructor with the class name like.
Correct Answer
(A) classname::__construct()
[#65] . . . . . . is a class which can only be instantiated once. You can effectively only have one object per . . . . . class in an application.
Correct Answer
(C) Singleton, Singleton