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
You can create a ____ partition to hold files that are created temporarily, such as files used for printing documents (spool fil
LuckyWell [14K]

Answer:

The answer is "Option C".

Explanation:

The /var method can also be used to override the values of the current variable, or generate, and assign values to new variables. It generates a local variable, that can be modified via the -g switch, and other choices are not correct, which can be described as follows:

  • In option A, It is incorrect because it uses to store temporary data file.
  • In option B, It is used by a system administrator, that's why it is incorrect.
  • In option D, It isn't correct because it prints a warning message.
4 0
3 years ago
What does a fallout appear under in a word processing program
andriy [413]

Answer:

It processes paragraphs, pages, and entire papers

Explanation:

7 0
4 years ago
What file system supported by windows can be used for volumes and drives that don’t hold the windows installation? (choose all t
Vikki [24]

Answer:

What file system supported by Windows can be used for volumes and drives that don't hold the Windows installation? (Choose all that apply.) Correct! Correct. exFAT file system is supported by Windows and is used for large external storage devices that may be used with other operating systems.

Explanation:

8 0
3 years ago
The person who receives financial protection from a life insurance plan is called a:
tatiyna
The answer to this question is A. Beneficiary
Payer is the person who buy the insurance (not necessarily for themselves only, can be given to their family or friends). Insured can not only be a person, but it also can be an object (such as cars). And the giver is the company who provide the insurance service for the payer.
6 0
3 years ago
Read 2 more answers
A web-based application encounters all of the connectivity and compatibility problems that typically arise when different hardwa
andrezito [222]

Answer:

False

Explanation:

A web-based application encounters connectivity and compatibility relate to data server. It does not belong to any hardware environments.

A web based application is accessed over network.They run inside a web browser. Small of program is download to user's desktop, but this processing is done over internet.

6 0
3 years ago
Other questions:
  • When activated, an Excel object has all the features of an Excel
    8·2 answers
  • Eric has asked you to help him build a new gaming computer so that he can play the newest games available. He also wants the com
    6·1 answer
  • Which files have not been processed by your camera or computer?
    13·1 answer
  • Which of the following activities would be best-suited for a thinking mind map?
    10·2 answers
  • Why a commerce student must learn about SDLC (Software Development Life Cycle) and its phases?
    12·1 answer
  • What is the output?<br> &gt;&gt;&gt; password = "sdf#_356"<br> &gt;&gt;&gt; password.isalnum()
    8·2 answers
  • Which of the following statements are true about the code shown below in the class named Quiz? (Select all that apply.)
    7·1 answer
  • The names of the governing body or organizationds that creates rules for information technology and information communication te
    9·1 answer
  • 1) a program that is designed to perform only one task.
    11·1 answer
  • A flowchart meeting is a process where members of the team analyze the design piece-by-piece to make sure it meets requirements
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!