Hi so basically i have created Class Vlak
Which looks like this
class Vlak
{
private String id;
private enum types { rychlik,osobni,spesny}
public Vlak(String id)
{
this.id = id;
}
public void vypis()
{
System.out.println(id);
}
}
But now im trying to understand how can i access it through function and then assign some of the values to the object.