nand2/07_Operating_System/Array.jack

19 lines
505 B
Plaintext
Raw Normal View History

2023-01-11 10:13:09 +00:00
/**
* Represents an array.
* In the Jack language, arrays are instances of the Array class.
* Once declared, the array entries can be accessed using the usual
* syntax arr[i]. Each array entry can hold a primitive data type as
* well as any object type. Different array entries can have different
* data types.
*/
class Array {
/** Constructs a new Array of the given size. */
function Array new(int size) {
}
/** Disposes this array. */
method void dispose() {
}
}