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
ExtremeBDS [4]
3 years ago
9

Write a class for a Cat that is a subclass of Pet. In addition to a name and owner, a cat will have a breed and will say "meow"

when it speaks. Additionally, a Cat is able to purr (print out "Purring..." to the console).
Computers and Technology
1 answer:
fenix001 [56]3 years ago
8 0

Answer:

The Java class is given below with appropriate tags for better understanding

Explanation:

public class Cat extends Pet{

  private String breed;

 public Cat(String name, String owner, String breed){

      /* implementation not shown */

      super(name, owner);

      this.breed = breed;

  }

  public String getBreed() {

      return breed;

  }

  public void setBreed(String breed) {

      this.breed = breed;

  }

  public String speak(){ /* implementation not shown */  

      return "Purring…";

  }

}

You might be interested in
I want to be a astrophysicist but my parents want me to be a software engineer. whuch one is better?
Andreas93 [3]
You need to discover yourself which one you love to do. Software Engineering is just science and math, programming languages and too much work, but it’s the job of this era. It’s very very desirable and one of the highest salaries in US.
7 0
3 years ago
At what layer of the osi model does a network switch normally operate?.
Iteru [2.4K]

Answer:

A network switch is a multiport network bridge that uses MAC addresses to forward data at the data link layer (layer 2) of the OSI model.

I hope this helps you :)

5 0
2 years ago
As new technological systems develop, old systems become obsolete.<br><br><br> False<br><br> True
uysha [10]

Answer:

true

Explanation:

7 0
3 years ago
Read 2 more answers
What are the ways of closing an Microsoft word application? ​
Juliette [100K]

Answer:

By pressing key ALT and F4 to close a window application.

Explanation:

<em>Closing Microsoft application comes in different ways such as: </em>

<em> a. Pressing ALT and F4 to close an active window application. </em>

<em>b. Press the X button at the upper right of the screen. </em>

<em> If you are using a MAC or apple computer with Windows emulator, you can simply press on COMMAND key and W key to close an active window application.</em>

4 0
3 years ago
What learning about computer
uysha [10]

<em>Computer-based learning (CBL) is the term used for any kind of learning with the help of computers. Computer-based learning makes use of the interactive elements of the computer applications and software and the ability to present any type of media to the users.</em>

8 0
3 years ago
Other questions:
  • What is also known as a visual aid in a presentation
    8·2 answers
  • What is the IEEE standard for the Wi-Fi Protected Access 2 (WPA2) security protocol?
    6·1 answer
  • Why is color theory important
    6·2 answers
  • Your task is to create a bash shell script that is able to backup all the C++ program files in your current directory. The algor
    10·1 answer
  • You want to configure two DHCP servers; one is running Windows Server 2012 R2, and the other is running Windows Server 2016. One
    9·1 answer
  • Which of the following is not considered a system component that can be found inside a computer? A-CPU B-RAM C-PCIe graphics ada
    6·1 answer
  • Steve left his computer switched on in his room and went out to have breakfast. When he returned, he saw that the monitor had be
    9·1 answer
  • Discuss All control statements supported by Go
    13·1 answer
  • Which plan includes procedures and processes that ensure the smooth functioning of the business even after a disaster?
    14·2 answers
  • Which item can you add using the tag?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!