Making use of class Results shown below, repeat the above program, this time writing/reading objects of class Result. (When displaying the names and marks that have been read, of course, you must make use of the methods of class Result.) Once again, redirect initial input to come from your text file. class Result implements Serializable

 

{

private String surname;

private int mark;

public Result(String name, int score)

{

surname = name;

mark = score;

}

public String getName()

{

return surname;

}

public void setName(String name)

{

surname = name;

}

public int getMark()

{

return mark;

}

public void setMark(int score)

{

if ((score>=0) && (score<>

mark = score;

}

}

 

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!