Solved

Suppose C1 and C2 Are Objects of the Class Circle

Question 52

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