subject

Consider the following class definition. public class rectangle{private double length; private double width; public rectangle(){length = 0; width = 0; }public rectangle(double l, double w){length = l; width = w; }public void set(double l, double w){length = l; width = w; }public void print(){system. out. println(length + " " + width); }public double area(){return length * width; }public void perimeter(){return 2 length + 2 width; }}suppose that you have the following declaration. rectangle bigrect = new rectangle();
which of the following sets of statements are valid in java?
(i) bigrect. set(10, 5);
(ii) bigrect. length = 10; bigrect. width = 5;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
William travels a lot on business purpose. he needs to regularly communicate with his business partner. he also needs to send out weekly reports to his boss while he is traveling. which web-based application best suits william’s needs? (social media, webmail, wiki) is the best web-based application for william. he can access this application via the internet using a (digital cable, fax machine, web browser).
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Alison is having a hard time at work because hee inbox is flooded with emails every day. some of these emails are unsolicited. some of other she don’t need. which action should she take to better manager her emails?
Answers: 1
You know the right answer?
Consider the following class definition. public class rectangle{private double length; private doubl...
Questions
question
English, 07.01.2022 16:50
question
Mathematics, 07.01.2022 16:50
question
Mathematics, 07.01.2022 16:50
question
English, 07.01.2022 16:50