subject
Computers and Technology, 28.12.2019 05:31 bear342

Assign coursestudent's name with smith, age with 20, and id with . use the print member method and a separate println statement to output coursestudents's data. sample output from the given program:

name: smith, age: 20, id:

// code from file persondata. java
public class persondata {
private int ageyears;
private string lastname;
public void setname(string username) {
lastname = username;
return;
}
public void setage(int numyears) {
ageyears = numyears;
return;
}
// other parts omitted
public void printall() {
system. out. print("name: " + lastname);
system. out. print(", age: " + ageyears);
return;
}
}
// end
// code from file studentdata. java
public class studentdata extends persondata {
private int idnum;
public void setid(int studentid) {
idnum = studentid;
return;
}
public int getid() {
return idnum;
}
}
// end
// code from file .java
public class {
public static void main (string [] args) {
studentdata coursestudent = new studentdata();

/* your solution goes here */

return;
}
}
// end

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:10
Select the correct answer. emma, the quality control manager in a software development company, asks the testing team to check whether the user interface is friendly. to which type of testing is emma referring? a. usability testing b. data comparison c. validation testing d. stress testing e. destruction testing
Answers: 1
question
Computers and Technology, 23.06.2019 02:50
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
You know the right answer?
Assign coursestudent's name with smith, age with 20, and id with . use the print member method and a...
Questions
question
Mathematics, 22.01.2021 19:40
question
Computers and Technology, 22.01.2021 19:40
question
Biology, 22.01.2021 19:40
question
Mathematics, 22.01.2021 19:40
question
Mathematics, 22.01.2021 19:40
question
Mathematics, 22.01.2021 19:40
question
Chemistry, 22.01.2021 19:40
Questions on the website: 13722363