A two-course sequence that takes students from their very first program to well-designed object-oriented software in Java. Part I (CPS 1231) builds the foundations of programming and problem solving: how a computer runs a program, how to design an algorithm before writing it, and how to express it with variables, decisions, loops, methods and arrays. Part II (CPS 2231) turns those skills into object-oriented programming: classes and objects, encapsulation, inheritance, polymorphism, interfaces, exceptions, files and recursion.
This Learning Hub accompanies the course handbook: every chapter has a concept review, a question bank with explanations, and programming labs with model solutions.
Part I — Foundations (CPS 1231)
- How computers, programs and the Java language work together
- Algorithm design with pseudocode, flowcharts and hand tracing
- Variables, data types, operators, expressions and type conversion
- Characters, strings and console input
- Selection, Boolean logic and loops
- Methods and the Java API; one- and two-dimensional arrays
Part II — Object-Oriented Programming (CPS 2231)
- Classes, objects, encapsulation, constructors and object references
- Static members, utility classes and program design
ArrayList, StringBuilder and arrays of objects
- Inheritance, composition, aggregation, polymorphism, abstract classes and interfaces
- Exception handling, file input/output and recursion