What's new

Java PASOK IT STUDENTS need ko lang Tulong :)

PHC - PENNYWISE

Eternal Poster
Established
Joined
Sep 14, 2018
Posts
1,551
Reaction
551
Points
473
Age
24
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
 

Attachments

hahaha parang yung ibang tao pa gusto mo gumawa ng assignment mo ah. Napaka simple lang yan hindi mo pa kaya.
 
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?
 

Similar threads

Back
Top