java-scuola/NetBeans Projects/Deposito/src/deposito/C.java

24 lines
410 B
Java
Raw Normal View History

2023-05-02 18:57:03 +02:00
package deposito;
/**
* Classe che simula un contenitore generico
* @author radaelli11353
*/
public abstract class C implements Comparable<C> {
String id;
public C(String id) {
this.id = id;
}
public abstract String getNome();
@Override
public abstract int compareTo(C o);
@Override
public String toString() {
return "C{" + "id=" + id + '}';
}
}