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

Trending Topics

Online now

Members online
1,050
Guests online
3,234
Total visitors
4,284

Forum statistics

Threads
2,307,193
Posts
29,177,266
Members
1,193,292
Latest member
Bahaa
Back
Top