🔒 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
  • 343
    Views
  • 2
    Participants
Last reply from:
PHC - PENNYWISE

Trending Topics

Online now

Members online
1,170
Guests online
1,788
Total visitors
2,958

Forum statistics

Threads
2,293,889
Posts
29,087,294
Members
1,207,992
Latest member
Putingbaka
Back
Top