Object oriented programming in C++ - (5 cfu)

Prof. Michele Tomaiuolo Tel. 0521 905712 - Fax. 0521 905723
  E-mail. tomamic@ce.unipr.it
  Home page. http://www.ce.unipr.it/people/tomamic


Finalità

To enable students to design solutions to computational problems in an object-oriented manner. Students will:
- learn the concepts of class, object, inheritance, and polymorphism;
- build complex data structures;
- be introduced to the development in UNIX environment.

Programma

* Introduction
- UNIX programming tools
- Basic C++ concepts: variable declarations, expressions, functions, arrays, and pointers
- Dynamic memory allocation, non-OO syntax
- Introduction to object oriented programming

* Classes in C++
- Stream I/O in C++
- Classes and encapsulation
- Member functions, constructors, destructors
- Copy constructor, operator=
- Friendship

* Storage Management
- Memory allocation
- Dynamic allocation: new and delete

* Inheritance
- Overview of inheritance
- Defining base and derived classes
- Constructor and destructor calls

* Polymorphism
- Function overloading
- Operator overloading
- Virtual functions, purely virtual functions

* Exceptions
- Overview of exceptions
- Inheritance and exceptions
- Exception hierarchies

* Templates
- Template overview
- Containers and iterators
- STL containers, iterators, functors

Modalità d'esame

A quiz and a programming test. Occasionally, oral exams are also required.

Propedeuticità

Fondamenti di Informatica A + Laboratorio di Programmazione.

Testi consigliati

W. Savitch, Absolute C++, 2/e, Addison-Wesley


Ultimo aggiornamento: 24-07-2006


Chiudi la finestra