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, 21.06.2019 16:00
This statement accurately describes how headlines should be placed in business documents.
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
question
Computers and Technology, 24.06.2019 08:00
How can smart devices benefit businesses, organizations, and social communities in the global marketplace?
Answers: 1
You know the right answer?
Public class someclass { private string aname; private int anumber; private boolean amawesome; pu...
Questions
question
Computers and Technology, 11.03.2020 16:35
Questions on the website: 13722362