i am new to java and i have a simple question and i have this code
public abstract class Seq { int a, b, c;}
class For extends Seq{
public For( int first, int last, int step )
{
a=first;
b=last;
c=step;
}
and in the main i have:
For r1= new For(3, 4, 5);
what i want to do is that i want to add this statement in the main System.out.print(r1);
and i want this statement to print "your parameters: 3, 4, 5"
how can i do this?