🔒 Closed PASOK IT STUDENTS need ko lang Tulong :)

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.
 
Create a class Smallest that will find the smallest value among 3 integers. Here you will create your min() method that will return the minimum value. Include a printSmallest() method that will print the smallest integer. You may create a separate class with the main method that will accepts 3 user inputs. Create an object of the Smallest class using the default constructor and display the final output. (Upload a screenshot of your code here) *
 
Give the complete definition of a class called Person that has two private instance variables, one of the person’s name and the other for the person’s age. Include setter and getter methods for each instance variable. Also, include a method that sets both the name and age of a person. There are no other methods. (Upload the screenshot of your Person class) *
 
Given the following class, called NumberHolder, create a class with the main() method that creates an instance of the class, initializes its two member variables, and then displays the value of each member variable. (Upload a screenshot of your code here) *
1604975945508.png
 
Paps ipost mo sarili mong code tuturuan ka namin kung hindi magrun.. pero kung kami mismo ang gagawa nyan hindi ka matututo.
 
hahaha ano ba to lods ng hihingi ka ng tulong o nagpapagawa ka? :D

Kung ng hihingi ng tulong, pwede paki-paskil ung nasimulan mo na?
 
Status
Not open for further replies.

About this Thread

  • 7
    Replies
  • 565
    Views
  • 5
    Participants
Last reply from:
zeinab01

Trending Topics

Online now

Members online
1,284
Guests online
1,973
Total visitors
3,257

Forum statistics

Threads
2,294,053
Posts
29,088,305
Members
1,208,052
Latest member
dialoggsm
Back
Top