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:
? (the question mark)
Explanation:
The asterisk (*) matches one or more occurrences of any character, but the question mark matches exactly one.
Answer:
Information technology is the process of development and maintenance the computer system components like software for distributing and processing the data in the network.
The main future aspects of the information technology is to share the data or information in the big networking platform. It basically increase the production of software application in upcoming coming years.
Information technology term commonly use in computer networks and provide huge applications like internet, telecom equipment and e-commerce.
Answer:
Codecademy. Codecademy is one of the most popular free coding websites for beginners.
freeCodeCamp.
Coursera.
edX.
Codewars. ..
Code Conquest. .
GA Dash. .
Khan Academy (highly recommed)
: