Computers and Technology
Computers and Technology, 28.12.2019 03:31, lee9724

Public class someclass { private string aname; private int anumber; private boolean amawesome; public someclass(string name, int number){ aname = name; anumber = number; amawesome = true; } public someclass(string name, int number, boolean awesome){ aname = name; anumber = number; amawesome = awesome; } public void methodawesome(int number){ if(amawesome) anumber += number - 5; amawesome = ! amawesome; } public int method fantastic(boolean fantastic){ fantastic = fantastic & & amawesome; if(! fantastic & & anumber > 0) aname = aname + " is fantastic"; return anumber *= -2; } public void methodamazing(int num){ if(anumber < 0) anumber = num; } public static void main(string[] args) { someclass awesome = new someclass("awesome", 5); awesome. methodamazing(10); int enum = awesome. method fantastic(true); someclass amazing = new someclass("amazing", -10, false); amazing. methodawesome(7); amazing. methodamazing(18); someclass fantastic = new someclass ("fantastic", 11, true); int fannum = fantastic. methodfantastic(true); fantastic. methodawesome(awnum + fannum); } }
how many objects are created in the main method

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:00, Geo777
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
image
Computers and Technology, 23.06.2019 00:10, makailaaa2
My has been slow anyone else’s ?
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, kyleemarie2003
Companies that implement and apply an information system effectively can create
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, 123iamthe1
You can apply several different worksheet themes from which tab?
Answers: 1
Do you know the correct answer?
Public class someclass { private string aname; private int anumber; private boolean amawesome; pu...

Questions in other subjects:

Konu
Social Studies, 07.10.2021 02:10