1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anni [7]
4 years ago
14

Java’s class Color has a constructor that takes three integers as parameters: the red, green, and blue components of the color

. A class Balloon has two fields: double radius and Color color. Write a constructor for the Balloon class that takes no parameters and sets the balloon’s radius to 10 and its color to "sky blue" (with RGB values 135, 206, and 250).
Computers and Technology
1 answer:
Tanzania [10]4 years ago
3 0

Answer:

    public Balloon(){

          //Invokes the 2 argument constructor for balloon with relevant  

          //parameters

          this(10,new Color(135,206,250));

    }

Explanation:

class Balloon{

    //Private fields in the Balloon class

    private double radius = 0;

    private Color c = null;

    // Constructor with two arguments - radius and Color

    public Balloon(double radius,Color c){

         this.radius = radius;

         this.c = c;

    }

    // No argument constructor

    public Balloon(){

          //Invokes the 2 argument constructor for balloon with relevant  

          //parameters

          this(10,new Color(135,206,250));

    }

}

You might be interested in
________ is a publicly accessible website that allows users to add and edit interlinked web pages and make contributions from th
Nat2105 [25]

Answer:

Wikipedia

Explanation:

Wikipedia is a free online encyclopedia, created and edited by volunteers around the world and hosted by the Wikimedia Foundation. It uses a collaborative software known as wiki for editing articles. It was created Jimmy Wales and Larry Sanger.

Wikipedia is a free online encyclopedia that provides open content to its users. It is written collaboratively and openly by a community of both actual and self-proclaimed experts.

Wikipedia is a publicly accessible website that allows users to add and edit interlinked web pages and make contributions from their own personal experience to update existing articles with current information.

4 0
3 years ago
Read 2 more answers
Project: Math Tutor Program with Error Handling
galina1969 [7]

Answer:

Woah

Explanation:

5 0
3 years ago
Read 2 more answers
John works for Internal Computer Specialists, which focuses on helping small business owners resolve MIS infrastructure issues.
natali 33 [55]

Answer:

A) Hardware

Explanation:

The hardware component of the computer refers to the physical parts of the computers that can be see and touched this contrasts the sofware component of the computer that are programs (sets of instruction). All the coponents listed in the question are physical parts of the computer and belong to the hardware component.

5 0
3 years ago
SOMEBODY HELP ME ASAP PLEASE AND THANK YOU
Paha777 [63]

Answer:

Isnt there another thing that is supposed to be there like some website

Explanation:

7 0
3 years ago
Read 2 more answers
Explain what the problems with the implementation of the function are, and show a way to fix them.// return true if two C string
Nataly [62]

Answer:

The code is not dereferencing the pointers. You have to place an asterisk in front of the pointer to read the value the pointer points to.

Explanation:

So "if (str1 != str2)" must be "if (*str1 != *str2)".

likewise:

   while (*str1 != 0 && *str2 != 0)

and

     result = (*str1 == *str2);

7 0
3 years ago
Other questions:
  • A ______________ is a document created when planning resource management to help promote teamwork and clarify team communication
    13·1 answer
  • To resize an embedded chart, ____. select one:
    5·1 answer
  • Your friend Rebecca called because she is working on a budget and needs help with the AutoSum feature. She thinks AutoSum will b
    8·1 answer
  • Which category of management information systems (MIS) combines the forecasting capability of decision support software with the
    12·1 answer
  • What is the 5 basic steps of computer programing?
    6·1 answer
  • Bitmap images are ________ into different software applications.
    9·1 answer
  • A Python keyword ______________.
    15·1 answer
  • বর্তমান করােনার ন্যায় পরিস্থিতি অর্থাৎ স্বাভাবিক শ্রেণি কার্যক্রম পরিচালনা সম্ভব
    10·2 answers
  • URGENT!! thank you!!!!!
    9·1 answer
  • If the bookstore sold 8 books for $66 at that rate how much was one book
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!