Level 5, 20 Credits.
- Not Presently Available.
Get the latest updates on our courses
Please use our subscription page to register your interest, and we will keep you updated on all relevant information and news about subjects you have chosen.
This course will provide an introduction to the C++ programming language and its usage. After attending this course you will have acquired the basic skills in programming in C++ and an understanding of the ideas of object oriented programming. Topics covered in this course include an introduction to classes and objects, class variables, constructors and functions, overloaded constructors and functions, public and private access to variables and functions, arithmetic operators, simple input and output, comparison operators and the use of conditional and iterative control statements, formatting of output, use of library functions and the creation of user defined functions, introduction to pointers, introduction to arrays, accessing arrays using both subscripts and pointers, using classes containing static functions and static variables, introduction to inheritance by creating a derived class from a base class, inherited and overridden functions in the derived class, use of the new and delete operators to dynamically allocate and release memory, use of the fstream library functions to access files and use of user defined classes to write object-oriented programs. No prior knowledge of C++ is required.
Who is this course for?
This course is ideal for the student who wants a good general introduction to object oriented programming.
Learning and Teaching
This module includes a mix of traditional lectures and laboratory sessions. Each meeting starts with a lecture and finishes with a laboratory session.
Coursework and Assessment
To award credits we need to have evidence of the knowledge and skills you have gained or improved. Some of this has to be in a form that can be shown to external examiners so that we can be absolutely sure that standards are met across all courses and subjects.
During the course, students will be given assignments to be submitted to the course tutor. At the end of the course, there will be a class test.
The most important element of assessment is that it should enhance your learning. Our methods are designed to increase your confidence and we try very hard to devise ways of assessing you that are enjoyable and suitable for adults with busy lives.
- Data Types
- Introduction to classes and objects
- The difference between public and private access to functions and data
- Introduction to constructors
- Overloaded constructors
- Numeric and relational operators
- Use of conditional and iterative control statements
- Accessing arrays using subscripts and pointers
- Formatting of output
- Use of string functions
- Use of static functions and static variables within a class
- Use of new operator to dynamically allocate memory and use of delete operator to release memory
- Handling memory allocation errors
- Use of iostream library functions to get input from the keyboard
- Introduction to inheritance by creating a derived class from a base class
- Inherited and overriden functions in the derived class
- Calling a specific base class constructor from the derived class
- Base class access control
- Command line argument processing
- Writing and reading files using the fstream library functions
- Using user defined classes to write object-oriented programs
Schildt, H. (2003) C++ from the Ground Up. Osborne McGraw-Hill.