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
Oliga [24]
3 years ago
6

The base class Pet has private fields petName, and petAge. The derived class Dog extends the Pet class and includes a private fi

eld for dogBreed. Complete main() to: create a generic pet and print information using printInfo(). create a Dog pet, use printInfo() to print information, and add a statement to print the dog's breed using the getBreed() method.

Computers and Technology
1 answer:
Lapatulllka [165]3 years ago
5 0

Answer:

Hello attached is the Java program written to solve the problem

The Pet.java and Dog.java files are unaltered

Explanation:

The input and output  codes are attached as well i.e the second image is the input while the third image is the output code

You might be interested in
Suppose variables roll1 = 3 and roll2 = 4, which of the following will be evaluated as true?
Y_Kistochka [10]

Answer:

The correct answer for the given question is "  roll1>3 || roll2 > 3  "

Explanation:

In option A, there are two conditions separated by OR. In OR, if any condition  is true then it will return TRUE. There second condition is TRUE in the statement  that is why the whole expression return TRUE.

Thats why the correct answer is "roll1>3 || roll2 > 3".

5 0
3 years ago
"what command can be used on most linux distributions to find the directories where the man pages are kept"
BartSMP [9]

Answer:

Base name or -b command is used to locate only match directory in Linux.

Explanation:

base name can   primarily be used in shell script.

As we know that base name can be described  as a standard UNIX computer program. When we give a path name to any base then it  deletes each and every  prefix up to the last slash character and give back the result. base name can be defined in the Single UNIX Specification


6 0
3 years ago
___ allow users to select controls by keyboard shortcuts. (Points : 3) Alternative keys
PtichkaEL [24]

Answer: Alternative key

Explanation:

 The alternative key is the type of shortcut key in the keyboard that allow the users for selecting the control or shift key. It is also considered as the modifier key. For using the alternative key we must ensure that the lock num is ON in the keyboard.

The alternate key is basically provide the various alternative input and the operation. The short name of the alternate key in the keyboard is denoted as "Alt key". The function of the alternative key may vary from one application to another.    

3 0
3 years ago
6.1.4: Decorate the Fence, what is the code program for the CodeHs Karel lessons?
KiRa [710]

Answer:

hi

Explanation:

function start(){

   move();

   move();

   move();

   move();

   move();

   turnLeft();

   

   while(frontIsClear()){

       if(rightIsBlocked()){

           putBall();

           move();

       }

           else{

       move();

   }

   }

putBall();

}

6 0
3 years ago
You are trying to sell a new product to a store owner. Which method of presentation is likely the most effective?
Elina [12.6K]
D. Because if you show the owner the graph he'Il be impressed so he'll obviously want proof so show him the other store owners success quotes and then for him to trust you, Give him a trial of the product
5 0
3 years ago
Read 2 more answers
Other questions:
  • To clean dirt and spilled electrolyte from a battery, use a dilute solution of either water and baking soda or water and A. sulf
    13·1 answer
  • In Python, if var1 = “Happy” and var2= “Birthday” and var3 = (var1+var2) *2, then var3 stores the string
    15·1 answer
  • A. True
    6·1 answer
  • Until the 1990s scaling up was almost always a more cost-effective strategy to increase available computer power because communi
    14·1 answer
  • Data_____is defined as the condition in which all of the data in the database are consistent with the real-world events and cond
    9·1 answer
  • A mobile device user is having problems launching apps and texting. The user touches an app to launch it, but the app icon next
    13·1 answer
  • ______ is a type of computer software that is installed into devices such as printers, print servers, and various types of commu
    5·1 answer
  • Theodor is researching computer programming. He thinks that this career has a great employment outlook, so he'd like to learn if
    9·2 answers
  • When planning the structure of a spreadsheet, columns are for _______ items and rows are for _______ items.
    10·2 answers
  • In Windows 7's Jump List, what can we do?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!