Informatica |
 |
Programmazione 2 - [45009] |
| Docenti del Corso |    | |
| |
| Assistenti del Corso |    | |
| |
| Anno di Corso |    | | 1 | |
| Totale Crediti |    | | 6 | |
| Periodo Didattico |    | | Secondo Semestre | |
| Obbiettivi |    | | The course introduces object oriented programming as a solution to the increasing complexity of software artifacts. Ath the end of the course students will be familiar wit hthe concepts of classes, objects, inheritance, polymorphism, information hiding, static and dynamic binding. Java and C++ wll be the languages used in the course. | |
| Programma |    | | The memory model. Pointers, References, Functions, Variables scope, parameter passing, recursive functions, Arrays, functions and arrays, Strings, Dynamic memory allocation, new and delete, memory leaks Classes and Objects: basic elements The function namespace problem, costructor e destruttor methods, visibility of variables, Parna''s Principle, Polymorfism Classes and Objects: Java solutions basic Java constructs, Passing parameters in Java, Classes and Objectsin Java Classes and Objects: other themes: Copying objects. The copy constructor, Implicit call to copy constructor and distructor, Shallow vs. Deep copy, friend functions, objects equality and identity.
Inheritance: Overloading e overriding, virtual methods, Static and dynamic binding, Upcasting e downcasting, Static and dynamic downcasting, virtual distructors, UML modelling.
| |
| Prerequisiti corso |    | | Knowledge of the basic constructs of the C language. | |
| Metodo Didattico |    | | Frontal lecture | |
| Bibliografia |    | | Bruce Eckel, Thinking in C++: Introduction to Standard C++, Prentice Hall; ISBN: 139798099 Bruce Eckel, Thinking in Java, Apogeo, ISBN: 88-7303-998-7 Materiale on line reso disponibile durante il corso
| |
|