What's new

Help Pasok mga IT Students JAVA

PHC - PENNYWISE

Eternal Poster
Established
Joined
Sep 14, 2018
Posts
1,551
Reaction
551
Points
473
Age
24
Create a Puppy class and declare 1 private variable puppyAge. Create a constructor of that class that has one parameter for the puppy name. Provide getter and setter for the puppyAge variable. In a separate class in your main method, create an object through the constructor created of your Puppy class, assign age a value and print both puppy’s name and age. (Upload the screenshot of your 2 classes and your codes' output) *


salamat sa makakatulong ka PHC :)
 

Similar threads

Back
Top