0
Overriding whats going on here??
Machine m = new Machine() { @Override public void start() { System.out.println("Wooooo"); } };<<HERE m.start(); << HERE } }
1 ответ
0
you are overriding the functions of the Machine class for the instance m
m.start() is simply calling the start() function from the instance m