feat: update structure
This commit is contained in:
12
cs2030s/labs/Lab4/Action.java
Normal file
12
cs2030s/labs/Lab4/Action.java
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* The Action interface that can be called
|
||||
* on an object of type T to act.
|
||||
* Contains a single abstract method call.
|
||||
* CS2030S Lab 4
|
||||
* AY22/23 Semester 1
|
||||
* @author Yadunand Prem (10B)
|
||||
*/
|
||||
|
||||
interface Action<T> {
|
||||
void call(T item);
|
||||
}
|
||||
Reference in New Issue
Block a user