generated from nus-cs2030/base-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Compile Time Type VS Runtime Type
Russell Saerang edited this page Sep 11, 2021
·
4 revisions
Compile-time | Run-time |
---|---|
Left hand side of the assignment | Right hand side of the assignment |
The type in which the variable is declared | The type the variable is assigned to |
Restricts methods that can be called upon declaration/compilation | Actual methods to invoke are determined during runtime |
Method overloading | Method overriding |
Static/early binding | Dynamic/late binding |
For example.
Circle c = new FilledCircle(1.0, Color.BLUE);
Compile-time type of c
is Circle
and the runtime type is FilledCircle
.
Peer Learning
Guides
Setting Up Checkstyle
Setting Up Java
Setting Up MacVim
Setting Up Stu
Setting Up Unix For Mac
Setting Up Unix For Windows
Setting Up Vim
Setting up SSH Config
SSH Without Password
Copying Files From PE Nodes
Using tmux
CS2030 Contents
Lecture 1 SummaryLecture 2 Summary
Access Modifiers
Lecture 3 Summary (Polymorphism)
Compile Time Type VS Runtime Type
Abstraction, Encapsulation, Inheritance, and Polymorphism
SOLID Principles
Class VS Abstract Class VS Interface
Comparable VS Comparator
Generic Types T
HashMap
Raw Types with Generic
Lambda expression
PECS (Producer Extends Consumer Super)
Optional
Streams
Parallel Streams
Monad
Functors and Monads with Category Theory