Lab 6: ADTs and Inheritance | CS 61BL Summer 2024
First, we’ll cover inheritance in Java, which comes in three main forms: interface implementation, abstract class extension, and concrete class extension. We will also discuss dynamic method selection (DMS), a process that determines which functions get run upon program execution as a result of inheritance and Java’s static typing. First, we’ll look at some classes we’ve written so far, and identify patterns in what we can do with them. We will connect this idea to abstract data types, then tie them to interfaces. This feature allows us to make a more complicated system of class interrelations than we have seen previously, and its correct utilization of interfaces is key to being able to write generalizable and neat code. Once introduced, we will use this concept to explain the workings of the Java Collections Framework, which contains many of the data structures you’ve encountered before. Finally, we’ll write our own implementations for a simplified abstract data type. To motivate inh
First, we’ll cover inheritance in Java, which comes in three main forms: interface implementation, abstract class extension, and concrete class extension. We will also discuss dynamic method selection (DMS), a process that determines which functions get run upon program execution as a result of inheritance and Java’s static typing. First, we’ll look at some classes we’ve written so far, and identify patterns in what we can do with them. We will connect this idea to abstract data types, then tie them to interfaces. This feature allows us to make a more complicated system of class interrelations
Explore this link on the map →