Question: Given this Star class: public class Star ( } private double x,y; private string name; private double brightness; public star() { name=; } public
Given this Star class: public class Star ( } private double x,y; private string name; private double brightness; public star() { name=""; } public star(String s) ( name=; } public star(strings, double b, double x1, double y1) { name = 5; x = x1; y = y; brightness = b; } public double getx() ( return x; } public void setx(double x) { this.x = x; } public double gety() { return y; } public void sety(double y) { this.y = y; } public string getName() { return name; } public void setName(String name) ( this.name name; } public double getBrightness() { return brightness; } public void setBrightness(double brightness) { this.brightness- brightness; } How many constructor methods are there?
Step by Step Solution
3.58 Rating (148 Votes )
There are 3 Steps involved in it
Recall that constructor method is ... View full answer
Get step-by-step solutions from verified subject matter experts
