[cpl] [CPL][Tema2] Mostenire

Marius-Cristian E?EANU marius.eseanu at cti.pub.ro
Wed Dec 2 00:39:18 EET 2015



Salut,

Am o nelamurire.

Daca am :

class Int inherits IntModel ....

Care dintre urmatoarele situatii vor genera erori ? 

1. Int x = new IntModel
2. IntModel y = new Int
3. Int x
    IntModel y
    if ( x == y )

Multumesc,
Cristi


More information about the cpl mailing list