public class Actor
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Actor()
The constructor
|
Actor(java.lang.String name,
java.lang.String role)
The constructor used to create a instance of the class
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Used to get the name of the actor
|
java.lang.String |
getRole()
Used to get the role the actor played
|
void |
setName(java.lang.String name)
Used to set the actor name
|
void |
setRole(java.lang.String role)
Used to set the actor role
|
public Actor(java.lang.String name, java.lang.String role)
name
- The name of the actorrole
- The role the actor playedpublic Actor()
public java.lang.String getName()
public java.lang.String getRole()
public void setName(java.lang.String name)
name
- The actor namepublic void setRole(java.lang.String role)
role
- The actor role