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
musickatia [10]
3 years ago
14

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:
Nonamiya [84]3 years ago
4 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
Which statement about muzzleloaders is true? All muzzleloaders are rifles. All muzzleloaders have only one barrel. Muzzleloaders
NeX [460]

Answer:

Muzzleloaders are early firearms that are loaded from the open end

Explanation:

A muzzleloader is any firearm into which the projectile and usually the propellant charge is loaded from the muzzle of the gun.

This is distinct from the more popular modern designs of breech-loading firearms.

Thus, muzzleloaders are early firearms that are loaded from the open end.

6 0
3 years ago
The development of online capabilities created the ________, an information- and communication-based electronic exchange environ
Reil [10]

It should be noted that development of online capabilities created the marketspace, where an information- and communication-based electronic exchange is been done.

The digital market place  serves as the environment occupied by sophisticated computer and telecommunication technologies and digital offerings.

<h3>What is a marketspace?</h3>

marketspace can be regarded as a place where buying and selling takes place and this could be digital in nature.

Learn more about marketspace at;

brainly.com/question/11408596

5 0
2 years ago
I have all of the points and brainliest, but it won't level up, I don't know why, anyone know why?
ozzi

Answer:

just refresh

Explanation:

you did level up i just checked, it just hasnt updated for you

8 0
2 years ago
Read 2 more answers
Why is it important to minimize cable clutter in a rack?
V125BC [204]

Answer: Cable clutter is the mess created due to cables of the operating system units in the rack.The reduction in the cable clutter is important because it make the computing environment clear and prevent the blockage in flow of air, reducing the litter in rack environment etc  

The clearance of the cable clutter can be done with the help of cable managers for collecting the cables and tying them into one section, organizing and clearing the cabinets of rack.

8 0
3 years ago
BRIANLIEST!!!!!!!!!!!!!!!!
oksano4ka [1.4K]

Answer:

First Line indent

Explanation:

should be correct

4 0
3 years ago
Read 2 more answers
Other questions:
  • What is the purpose of exporting your public key to the directory services server?
    11·1 answer
  • 60 POINTS!
    13·1 answer
  • Which option nukes your systemâall apps, programs, user files, user settingsâand presents a fresh installation of Windows?
    13·1 answer
  • Write a Twitter class that sets the Twitter user first (who is to be followed) and lets the client add up to 5 followers, which
    10·1 answer
  • How does the use of the computer impact businesses
    13·1 answer
  • What devices gives input​
    5·1 answer
  • What is this....... Iam booking train to patna. ​
    13·2 answers
  • The purpose of Appetizers on the menu​
    6·2 answers
  • Golf scores record the number of strokes used to get the ball in the hole. The expected number of strokes varies from hole to ho
    5·1 answer
  • What type of e-mail typically lures users to sites or asks for sensitive information?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!