public class Person extends Object
Modifier and Type | Method and Description |
---|---|
int |
getAge() |
String |
getName() |
boolean |
isCanDrink() |
void |
setAge(int age) |
void |
setCanDrink(boolean canDrink) |
void |
setName(String name) |
public Person()
public Person(String name, int age)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.