🔒 Closed Pasok mga IT Students JAVA

Status
Not open for further replies.
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 :)
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 337
    Views
  • 2
    Participants
Last reply from:
PHC - PENNYWISE

Online now

Members online
920
Guests online
3,237
Total visitors
4,157

Forum statistics

Threads
2,276,129
Posts
28,967,781
Members
1,231,127
Latest member
zrhu
Back
Top