Main Page
Labs
Projects
Syllabus
Course Materials
Documentation Guidelines
Honor Code
CS 1054: Introduction to Programming in JAVA
Course Materials
Introduction to Object Oriented Programming
Object Examples
Some Built-in Java Classes
PrintStream
String
Rectangle
Console Output
Loop Examples from the Slides
Aggregate Classes
,
Bank example
Arrays
,
Array examples
Aggregate class example (Bank) using an
array
or an
array list.
Object Interaction (Bank, ReportCard, Grocery)
,
Inheritance Demo: Writing different bank account classes
without inheritance
or
using inheritance (extends)
Static fields and methods demo: Ticket class
without
or
with a static field and method