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 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
I'm taking a class on how to make a movie, and it offers some apps that would be in the process. the thing is, i don't have any of those ha. if you have any tips on some apps i could use, that would be awesome. i don't have an iphone, so don't suggest any apps like imovie. i know that this is a weird question, but it would be super for me. : )
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
Why would a programmer use the logical operator and in an if statement? a: when an action is to be taken that requires both conditions to be falseb: when an action is to be taken that requires both conditions to be truec: when an action is to be taken that requires the first condition to be falsed: when an action is to be taken that requires the second condition to be truei took the test and the answer is b.
Answers: 3
question
Computers and Technology, 22.06.2019 19:00
If your accelerator suddenly gets stuck what should you do
Answers: 2
You know the right answer?
Public class someclass { private string aname; private int anumber; private boolean amawesome; pu...
Questions
question
History, 09.08.2021 23:30
question
Chemistry, 09.08.2021 23:30
question
Mathematics, 09.08.2021 23:30
Questions on the website: 13722362