Dies ist eine statische Kopie unseres alten Forums. Es sind keine Interaktionen möglich.
This is a static copy of our old forum. Interactions are not possible.

NullAhnung

Erfahrener Schreiberling

  • "NullAhnung" is female
  • "NullAhnung" started this thread

Posts: 332

Date of registration: Apr 28th 2003

1

Wednesday, May 4th 2005, 2:26pm

Programmieren Übung 2

monatsGehalt muss auch initialisiert werden... Das bedeutet was? Brauch ich dafür auch noch get und set Methoden? Dachte das wird alles aus der Oderklasse vererbt?

Posts: 52

Date of registration: Apr 29th 2005

2

Wednesday, May 4th 2005, 5:59pm

blööök

bei mir wird setmonatsGehalt in settarifGruppe aufgerufen mit verschiedenen parameter- je nach tarifgruppe halt.
i feel the fungus in me growing

Markus

the one and only Unterstrich!

Posts: 2,571

Date of registration: Oct 9th 2003

3

Wednesday, May 4th 2005, 8:02pm

RE: Programmieren Übung 2

Quoted

Original von NullAhnung
monatsGehalt muss auch initialisiert werden


Wenn der Compiler das auswirft, muss du die Variable einmalig initialisieren, zB. int monatsGehalt = 0;
Charmant sein? Hab ich längst aufgegeben. Glaubt mir doch eh keiner...

Posts: 52

Date of registration: Apr 29th 2005

4

Wednesday, May 4th 2005, 8:20pm

ähhhmm

richtig. und da monatsgehalt eine private instanz der oberklasse ist...
i feel the fungus in me growing