Semester 3 · Compulsory · 7 ECTS
Advanced Object-Oriented Programming
About the course
Advanced object-oriented design through behavioural, structural and creational patterns and the SOLID principles, with an emphasis on composition and code reuse. The course covers layered application architecture following the MVC approach, working with relational databases through JDBC, DAO/Repository and JPA/Hibernate, and the integration of external libraries and components.Outcomes and topics
- Type parameterisation in Java (Java Generics): generic classes, methods and collections
- Introduction to design based on design patterns and the Strategy pattern: composition over inheritance
- The Observer pattern with a simple graphical interface
- The Command pattern and a simple undo/redo mechanism
- The Memento pattern for saving and restoring an object's state
- The Adapter and Decorator patterns: adapting incompatible interfaces and extending functionality
- The Factory pattern and separating object creation from object use
- The Singleton pattern and the limits of its use
- The SOLID principles and recognising unsuitable object-oriented design
- Architecture of an object-oriented application and the MVC approach
- Working with relational databases in Java using JDBC, and CRUD operations
- Separating the data access layer with DAO/Repository
- Object-relational mapping with JPA/Hibernate
- Integrating external libraries and components into an object-oriented application
- Designing the architecture of the final project: class diagram, choice of patterns, layers and database
Teaching and assessment
Teaching is delivered through lectures and exercises with problem-based tasks, and the content is brought together in a final project with technical documentation and an API description. The grade is based on short tests, problem-based tasks, tasks with deliberately introduced errors, critical reviews of software solutions and a defended final project, with a threshold of 50 per cent in each component.
Course leader and instructors
Teaching plan
The official, detailed teaching plan for the current academic year is always available on the Merlin pages of the course, to students enrolled in it. The general schedule of lectures is on the page Documents and decisions.