It turns out that I must create the game Ahorcado
, then I applied all the code but it turns out that I want to generate random words, of course words already defined and grab everything in an array where with the class Math.Random()
can generate random numbers inside of the range of the arrangement and thus be able to take random words so that the game is more didactic. Here is part of the code that I still do not know how to handle abstract classes, that's why I ask for your help:
public abstract class Palabras
{
private String nombre;
private String Descripcion;
public abstract void setNombre(String nombre);
public abstract void getNombre();
}
public class PlatosTipicos extends Palabras
{
//...
}
So that's my question, I do not know how to proceed.