Gwybodaeth Modiwlau

Module Identifier
CS12320
Module Title
Programming Using an Object-Oriented Language
Academic Year
2025/2026
Co-ordinator
Semester
Semester 2
Exclusive (Any Acad Year)
Reading List
Other Staff

Course Delivery

 

Assessment

Assessment Type Assessment length / details Proportion
Semester Assessment Individual assignment  2000 Words  60%
Semester Assessment Mini-assignments (up to 5)  40%
Supplementary Assessment One assignment  2000 Words  100%

Learning Outcomes

On successful completion of this module students should be able to:

Describe and explain the key differences between procedural and object oriented programming.

Find objects, classes and methods based on a problem statement, thereby showing aptitude to apply the concepts of abstraction and encapsulation.

Map UML use-case, class and sequence diagrams onto object-oriented code.

Develop a non-trivial object-oriented program that contains a graphical user interface, thereby demonstrating the ability to deal with simple event-driven programming.

Demonstrate the ability to apply the concepts of composition, inheritance and polymorphism.

Demonstrate in object-oriented code how to handle error conditions.

Demonstrate in object-oriented code how to store and retrieve data to and from files.

Brief description

This module will build on CS12020 Introduction to programming. In particular, it will explore the use of the object-oriented paradigm and its embodiment in the Java programming language. UML (Unified Modeling Language) notation will be defined and used as appropriate. It provides a foundation for Part 2 modules that use object-oriented languages, such as CS21120 - Data Structures and Algorithms, and CS22120 - The Software Development Life Cycle.

Aims

This module will build on CS12020 Introduction to Programming. It will explore the use of the object-oriented paradigm and its embodiment in the Java programming language. It will be taught in conjunction with CS10720 - Problems and Solutions, and will define and use UML when modeling requirements and design.

Content

This module's teaching pattern each week consists of two 2-hour lecturer-led teaching sessions in a large computer laboratory. This enables small presentations to be followed by related practical exercises and quizzes. Students also have a 1-hour small-group tutorial for team-based design and coding exercises. The module will cover the following topics:
1. Introductory workshops as a taster of many of the topics to be covered during the module: The idea of class and object. Storing data in instance variables. Methods. Java Virtual Machine and bytecode. Applications running from an integrated development environment tool. Review of concepts from semester one as used in Java: variables, conditional tests, loops.
2. Basic concepts. Exploration of objects and classes. The UML class diagram. Instance variables, methods and parameters, object diagrams. Relationships between classes and their representation in class diagrams. Mapping a simple procedural program from semester one to a Java program.
3. Review of basic concepts. Reading from the keyboard. Null references. Running programs from the command line. Javadoc comments. Naming conventions. Tutorial on the use of the Classes, Responsibilities and Collaborations technique.
4. Types and equality. Searching, loading and saving. Reading from and writing to files. Iteration over Java Collections. Java arrays. UML sequence diagrams.
5. Access modifiers. Packages and JAR files. The static modifier. Revisiting abstraction and encapsulation. Consolidation: design and implementation. The role of use-case diagrams and their relationship to class diagrams and implementation.
6. Focus on inheritance, polymorphism, interfaces and abstract classes. Overriding the equals method. Exception classes.
7. Graphical user interfaces. Event-driven programming. Separation of concerns.

Module Skills

Skills Type Skills details
Application of Number Inherent in the subject
Communication Communication in a technical sense through UML diagrams
Improving own Learning and Performance From feedback from staff and fellow students through peer assessment
Information Technology Inherent in the subject
Personal Development and Career planning The module will provide more information on what software engineers do
Problem solving Solving design and coding problems
Research skills Basic computer use
Subject Specific Skills UML diagrams, code development skills, use of integrated development environments
Team work Developed in tutorials

Notes

This module is at CQFW Level 4