Unit 2: Data & Objects
In this unit we will discuss various data types that assist with storage and organization of data. This will lead into Objects and an introduction to Object Oriented Programming.
In this unit we will discuss various data types that assist with storage and organization of data. This will lead into Objects and an introduction to Object Oriented Programming.
2.1 - Primitive vs Abstract Data π¦
2.2 - 2D Arrays π’
2.3 - Abstract Data Types πΆβπ«οΈ
2.4 - The Stack ADT π₯
2.5 - Classes and "new" π
2.6 - Constructors π·π»π§ and Class Methods
2.7 - Protection ππ¦Ί
2.8 - Inheritance π¨βπ©βπ§βπ¦ & Super! π¦Έπ»
The Unit 2 Summative Assessment (Assignment)
Simple variables that can be stored in a single block of memory are called primitives. The typical primitive data types in a programming language are:
boolean
integer (byte, short, int, long, char)
float (float, double)
characters (char) - which are actually integers
On the other hand, abstract data types require more processing power and memory. They are a combination of the primitive types.
Examples:
We will start with the most basic abstract data type - Arrays.
Click here to find the GitHub Classroom repo for today's lesson