Computers and Technology
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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, dramaqueenactr2040
Two technicians are discussing the common u-joint. technician a says its input and output speeds should be equal. technician b says that it normally has two yokes. which technician is correct?
Answers: 1
image
Computers and Technology, 23.06.2019 01:20, shiann2002
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
image
Computers and Technology, 23.06.2019 06:40, sardarp1irc5
What are the three uses of a screw?
Answers: 2
image
Computers and Technology, 23.06.2019 10:00, karissanichole18
Install and use wireshark program ( send back screen shots and other vital information) case project 3-2: decode a tcp segment in a wireshark capture in this chapter, you walked through tcp segment to interpret the data included in its header. in this project, you use wireshark to capture your own http messafes, examine the tcp headers, and practice interpreting the data you'll find there. 1. open wireshark and snap the window to one side of your screen. open a browser and snap that window to the other side of your screen so you can see both windows.
Answers: 2
Do you know the correct answer?
Assign coursestudent's name with smith, age with 20, and id with . use the print member method and a...

Questions in other subjects:

Konu
Engineering, 14.09.2019 02:20
Konu
Engineering, 14.09.2019 02:20
Konu
Engineering, 14.09.2019 02:20