Solved

Suppose C1 and C2 Are Objects of the Class Circle

Question 4

Multiple Choice

Suppose c1 and c2 are objects of the class Circle.A Circle has a single data member,its radius.The Circle class has a default constructor (implemented correctly) ,but no other methods have been defined in the implementation of the Circle class.What will happen when we try to execute this code? Circle c1 = new Circle(12.0) ;
Circle c2 = new Circle(12.0) ;
Boolean same = (c1.equals(c2) ) ;


A) The code will not compile because equals( ) has not been implemented in Circle.
B) The value of same will be true.
C) The value of same will be false.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents