if a variable that set to DataElement type, how can we increase the value of that variable?
ex:
DataElement time;
if we use
int time,
we can increase the value like
time++;
if the type is DataElement,how can we increase its value?
---------------------------------------------------------------------------------------------------
DataElement class{
public abstract class DataElement {
public abstract boolean equals ( DataElement otherElement ) ;
public abstract int compareTo ( DataElement otherElement ) ;
public abstract void makeCopy ( DataElement otherElement ) ;
public abstract DataElement getCopy () ;
}
hope someone can help me..u could ask me for further details.tq.