I just want a short clarification on these two lines of code. What's the difference between these two?
SuperClass c = new JustTesting(1, 'b');
JustTesting b = new JustTesting(2, 'c');
By the way, in case you'd want to see the full code, here it is:
import static java.lang.System.out;
public class JustTesting extends SuperClass{
public JustTesting(int firstVar, char secondVar) {
super(firstVar, secondVar);
}
public static void main(String[] args) {
SuperClass c = new JustTesting(1, 'b');
JustTesting b = new JustTesting(2, 'c');
out.println(c.firstVar);
out.println(b.firstVar);
}
}