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

Trending Topics

Online now

Members online
981
Guests online
6,406
Total visitors
7,387

Forum statistics

Threads
2,354,391
Posts
29,383,483
Members
1,079,440
Latest member
Rubykesha
Back
Top