Question: The following two code snippets represent two different files, the first is CallSwift.java and the second is Swift.java CallSwift.java: public class CallSwift { public static
The following two code snippets represent two different files, the first is "CallSwift.java" and the second is "Swift.java"
CallSwift.java:
public class CallSwift
public static void mainString args
Swift albumSwift new Swift;
albumSwift.print;
albumSwift.setNameReputation;
albumSwift.setYear;
albumSwift.print;
Swift.java:
public class Swift
private String name "NoName";
private int year ;
public void setNameString albumName
name albumName;
public void setYearint albumYear
year albumYear;
public void print
System.out.printlnname year;
What is the output?
Group of answer choices
Reputation
Reputation
Reputation
NoName
Reputation
NoName
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
