🔒 Closed Pasok mga IT Students JAVA

Status
Not open for further replies.

PHC - PENNYWISE

Forum Veteran
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
  • 349
    Views
  • 2
    Participants
Last reply from:
PHC - PENNYWISE

Trending Topics

Online now

Members online
1,238
Guests online
2,176
Total visitors
3,414

Forum statistics

Threads
2,331,898
Posts
29,260,977
Members
1,147,875
Latest member
jujucoffee177
Back
Top