Single Choice
Not Set
QChoose the correct statement
public class Circle{
private double radius;
public Circle(double radius){
radius = radius;
}
}
ID: #2110
Declaration and Access Control in Java
1,420 views
Question Info
#2110Q ID
Not SetDifficulty
Declaration and Access Control in JavaTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
The program will compile, but we cannot create an object of Circle with a specified radius. The object will always have radius 0.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic