![jwbri](/avatars/48201.jpg)
jwbri
22.02.2021 •
Computers and Technology
LAB: Pet information (derived classes) The base class Pet has private fields petName, and petAge. The derived class Dog extends the Pet class and includes a private field for dog Breed. 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. Ex. If the input is: Dobby Kreacher German Schnauzer the output is: Pet Information: Name: Dobby Age: 2 Pet Information: Name: Kreacher Age: 3 Breed: German Schnauzer LAB ACTIVITY 100 10.9.1: LAB: Pet information (derived classes) 0/10 Current file: PetInformation.java - Load default template... 1 import java.util.Scanner; public class Pet Information { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); Pet my Pet = new Pet(); Dog myDog = new Dog(); String petName, dogName, dogBreed; int petAge, dogAge; petName = scnr.nextLine(); petAge = scnr.nextInt(); scnr.nextLine(); dogName = scnr.next(); dogAge = scnr.nextInt(); scnr.nextLine(); dogBreed = scnr.nextLine();
Solved
Show answers
More tips
- F Food and Cooking How to Make Delicious Plov: Secrets and Recipes...
- S Sport How to Learn to Pull Up on Monkey Bars?...
- L Leisure and Entertainment Scrapbooking: What is it and Why is it Becoming More Popular?...
- C Computers and Internet Where did torrents.ru move to?...
- B Business and Finance Understanding Cash Flow: What It Is and How It Works...
- C Computers and Internet What Are Peers and Seeds in Torrenting?...
- H Health and Medicine 10 Simple Techniques on How to Boost Your Mood...
- G Goods and services How to Choose the Right High Chair for Your Baby?...
- S Style and Beauty Learn how to tie a keffiyeh on your head like a pro...
Answers on questions: Computers and Technology
- C Computers and Technology I am donald trump i will sue u if u dont join my zoom Join Zoom Meeting Meeting ID: 990 8387 1214 Passcode: QdHST9...
- E English How does the following line in paragraph 1 impact the message of the story? We cling to our last pleasures as the tree clings to its last leaves. It is a reference...
- H History Who said i used the total war tactic destroying everything in the south...
- C Chemistry Please answer me How long was the journey to Earth? • How fast did you travel? • Was your speed affected when you entered Earth’s atmosphere? If so, how? • Was your...
- M Mathematics Write as a prime factorization 56x^2 y...
- M Mathematics A geometry student made this claim: If any two lines are cut by a transversal, then alternate exterior angles are always congruent. Select THREE diagrams that show...
- B Biology In what ways are water and sound waves similar...
- C Chemistry What is the average atomic mass of an element that has 3 isotopes with the data below?...
- B Biology Which is not one of Mendal s law a Law of segregation b Law of dominance c Law of Traits...
- M Mathematics What Is the scale factor that was used between the two similar figure shown below...
Ответ:
here
Explanation:
Most printers are easy to set up by following the manufacturer's instructions and using the installation disc. The process is a little trickier if you're new to computing and don't have the CD or instructions any more. This beginner's guide will show you how to get your printer up and running.
Use the Manufacturer's Instructions and Installation Disc
Always default to the instructions and use the disc that came with the printer. If you've lost your printer's manual, try doing a Google search for the name and model of your printer (which you can find by looking at your printer) plus the word "manual" (e.g., "HP Deskjet 3050 manual"). Manuals Online also has a collection of printer manuals that may help.