Question: AP COMPUTER SCIENCE A sible Points for Question 2 : ( 1 8 Points ) The following class represents an invitation to an event. The

AP COMPUTER SCIENCE A
sible Points for Question 2: (18 Points)
The following class represents an invitation to an event. The variable hostName represents the name of the hos event and the variable address represents the location of the event.
public class Invitation
{
private String hostName;
private string address;
public Invitation(String n, String a)
{
hostName =n;
address =a;
}
}
a) Write a method for the Invitation class that returns the name of the host. the method below -(6 Points).
 AP COMPUTER SCIENCE A sible Points for Question 2: (18 Points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!