Welcome to Westonci.ca, your one-stop destination for finding answers to all your questions. Join our expert community now! Discover in-depth answers to your questions from a wide network of experts on our user-friendly Q&A platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

10.14 lab: pet information (derived classes) the base class pet has protected fields petname, and petage. the derived class dog extends the pet class and includes a private field 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. ex. if the input is: dobby 2 kreacher 3 german schnauzer the output is: pet information: name: dobby age: 2 pet information: name: kreacher age: 3 breed: german schnauzer