Vous êtes sur la page 1sur 6

UNIVERSIT MOHAMMED V DE RABAT

FACULT DES SCIENCES DE RABAT


DPARTEMENT INFORMATIQUE

Travaux Pratiques
—————–

Programmation Orientée Objet en Java

TP4

Lahoucine Ballihi
Universit Mohammed V de Rabat
Facult des Sciences de Rabat
Dpartement Informatique
LRIT (Laboratoire de Recherche en Informatique et Tlcommunications)
B.P 1014 Rabat - Maroc
Phone : + 212 (0) 5 37 68 69 44
Fax : + 212 (0) 5 37 68 69 44

E-mail : l.ballihi@um5r.ac.ma

1
Table des matires

1 TP4 3
1.1 Polymorphisme et architecture ouverte . . . . . . . . . . . . . . . . 3
1.2 Exemples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

2 Application & Exercices 4


1 TP4
1.1 Polymorphisme et architecture ouverte
On souhaite construire une application permettant la manipulation formelle
d’expressions mathématiques telles que des expressions à plusieurs variables, qu’on
pourra étendre par la suite aux champs scalaires ou vectoriels par exemple.

1.2 Exemples
— f (x, y) = x + 2 ∗ y
— g(x, y, z) = x2 + y 2 + z 2
— k(x) = sin2 x + cos2 x
— h(x) = sin(x) + 5
2 Application & Exercices

Lahoucine Ballihi, November 14, 2022 Page 4 of 6


Lahoucine Ballihi, November 14, 2022 Page 5 of 6
Lahoucine Ballihi, November 14, 2022 Page 6 of 6

Vous aimerez peut-être aussi