public class Circle {
// the private data members
private double radius;
private double area;
private double diameter;
public void setRadius(double r)
{
radius = r;
}
public double getRadius()
{
return radius;
}
public double computeDiameter()
{
return radius * 2;
}
public double computeArea()
{
return ((radius * radius) * 3.14);
}
}
Answer:
The code will be a java-script code
Explanation:
public abstract class Phone{
private String phoneNumber ;
public Phone (String thePhoneNumber) {
phoneNumber = thePhoneNumber ;
}
public String getPhoneNumber ( ) {
return phoneNumber ;
}
public String toString ( ) {
phoneNumber = "# (" + phoneNumber + ") " ;
return phoneNumber ;
}
public abstract boolean createConnection (Network status) ;
public abstract void closeConnection( ) ;
}
Answer:
0.1
Explanation:
The value of amount is 100.So in the if-else-if ladder first condition in if will be checked since the amount is greater than 50 so the value of discount will become 0.1 and the execution of if else if ladder will be finish.The compiler will not be executing elseif or else.So the answer to this question is 0.1.
Okay u have to use my teqnieq and search it up because i said so and it wil get u the right answer
Answer:
The word you are looking for is "right"
Explanation: