Question: In the file Dril 1 2 . java, add the following class definitions ( you can copy / paste them from here ) : class
In the file Dril java, add the following class definitions you can copypaste them from here:
class C
C other;
C C other
this. other other;
class
int ;
double ;
Cint double
this. ;
this. ;
Then add a class definition called Drill with the following fields:
A field named first of type with its field equal to and field should be
A field named second of type C It's value should be a reference to a C object with its other field set to any C object other than the one stored in first you can create another C object for this
A field named third of type C It's value should be a reference to a C object with its other field the same object as the one stored in the first field.
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
