Computer Science, asked by Zindadil7432, 11 months ago

Consider the following code snippet, What is the output of the following code? var o = new F(); o.constructor === F

Answers

Answered by himanshuyadav12
1
the result of this program is true.
Answered by sailorking
3

Answer:

There shall be no output in the program, as nothing is printed, but the statements have a a lot to do with the program. The statement var o=new F(); Describes that there is a interface named Var, which is using the constructor of the class F, to allocate memory in the RAM.

Explanation:

Here after the memory allocation is done, at that point of time there is referencing of class, the constructor for the instance "o" gets referenced to the class "F".

Similar questions