Question: Consider the following statement: Pencil p = new MathTool ( new Eraser ( test , 6 ) ) ; Which is true of
Consider the following statement:
Pencil p new MathToolnew Erasertest;
Which is true of the declared type static type and object type dynamic type of p
Group of answer choices
Declared type of p is Eraser, object type of p is Pencil.
Declared type of p is MathTool, object type of p is Pencil.
Declared type of p is Pencil, object type of p is Eraser.
Declared type of p is Pencil, object type of p is MathTool.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
