Answer:
ctrl p I gusse hop it helps
bye know have a great day
Explanation:
Answer and Explanation:
public class petData
{
private int ageYears;
private String fullName;
private int IdNumber;
public void setName (String givenName)
{
fullName = givenName;
return;
}
public void setAge (int numYears)
{
ageYears = numYears;
return;
}
public void setID (int numID)
{
IdNumber = numID;
return;
}
public void printAll ()
{
System.out.print ("Name: " + fullName);
System.out.print (", Age: " + ageYears);
return;
}
}
From the above, we have defined a class petData, with methods setName, setAge, printAll. These methods all make use of the string variable fullName and integer variable ageYears. From the above, setName method sets fullName variable to name given to its string parameter givenName while setAge method does the same with the ageYears variable in initializing it. This is also done by the ID method. These variables are then used by printAll method in printing out the Name and age of the object which would be created with the petData class
E. g: petData dog= new petData();
Answer:
RAM
Explanation:
"RAM" refers to <em>Random-Access Memory. </em>Just like the human brain, this stores your computer files temporarily. It is considered to be a <em>"volatile memory"</em> which means that information can only be stored<u> when there's power.</u> So, when your computer shuts down,<u> the information is los</u>t. This is similar to the human brain, especially when it comes to learning. When a person learns new things, some of the information he read before may be forgotten.
Kid
YoungAgedOld
It will print out this way because the code uses if statements, rather than else if statements. As written, every single if statement will be triggered because each expression will evaluate to true. If there were else statements involved, then only the first one that is triggered will print out, and the rest will be ignored.
The reason for the weird formatting/spacing is because only the first print statement is println which adds a new line after printing. The other statements are just print, which does not add a new line or a space.