subject
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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
What is outfitting a workplace with video in a technology
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 24.06.2019 00:50
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
Answers: 1
You know the right answer?
Public class someclass { private string aname; private int anumber; private boolean amawesome; pu...
Questions
question
English, 06.03.2020 21:43
question
Physics, 06.03.2020 21:43
question
Mathematics, 06.03.2020 21:43
question
Mathematics, 06.03.2020 21:44
question
Mathematics, 06.03.2020 21:44
Questions on the website: 13722367