Object-Oriented Programming in C++
The course can also be done in self-study.
C++ has become the most widely used programming language in Scientific Computing.
This is partly because of its powerful support for object-oriented programming
and partly because of its compatibility with C. This introductory
course gives a thorough step-by-step introduction to object-oriented
programming using C++.
The textbooks used for the course are:
1) Computer Algebra with SymbolicC++
Yorick Hardy, Tan Kiat Shi and Willi-Hans Steeb
World Scientific, Singapore, 2008, ISBN 978-981-283-360-0
2) C++ Programming with Applications in Administrations, Finance and Statistics
Willi-Hans Steeb and Fritz Solms
World Scientific Publishing, Singapore, 2000, ISBN 981-02-4066-X
- Introduction to non-object-oriented C++
- Basic data types, cout, cin, printf, scanf
- Arithmetic operators
- Pointers and addresses
- Arrays of characters, strings
- The sizeof, new, delete, malloc and free operators
- Functions, pass by reference versus pass by value.
- The swap function: a common pitfall
- Arrays of pointers to string
- Loops: for loop, while loop, do while loop
- If condition, if-else
- Switch and decision tree
- Logical operators, logical AND, logical OR, logical NOT
- Shift operators
- Bitwise operators
- Interfacing with Assembly Language
- Random numbers
- Introduction to Object-Oriented Programming in C++
- Classes and objects
- Data members
- Private versus public scope
- Member functions (methods)
- Class operators.
- Type casting and type conversion.
- Stream access (C++ style and C style)
- Template classes with dynamic memory: vectors and matrices
- What does the compiler write for you?
- Constructors for classes using dynamic memory
- The assignment operator
- Inheritance and Polymorphism.
- Simple inheritance
- When to use inheritance
- Public, private and protected scope
- Virtual member functions and polymorphism.
- Multiple inheritance
- Exception Handling
- Standard Template Library
Timetable and Enrollment
For further information contact
- Prof. Willi-Hans Steeb