CSC403: Data structures in Java [3/5] Previous pageContentsNext page

Abstract data types are implemented as data structures.

Data structures are realized in Java using classes.

We hold the data associated with a data structure using fields (aka member variables or instance variables).

Fields are different from local variables, which are stored in methods.

We often use generics to re-use the implementation of a data structure and its operations across multiple data types.

Previous pageContentsNext page