Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trida Pivovar
- instancni promenne: jmeno adresa
- ---
- tridni metoda
- vytvorJmeno: arg1 adresa: arg2
- "Answer a newly created and initialized instance."
- ^super new vytvorJmeno: arg1 adresa: arg2
- ---
- instancni metoda
- vytvorJmeno: arg1 adresa: arg2
- "Initialize a newly created instance. This method must answer the receiver."
- super initialize.
- " *** Edit the following to properly initialize instance variables ***"
- jmeno := arg1.
- adresa := arg2.
- " *** And replace this comment with additional initialization code *** "
- ^self
- ---
- pivovarVPopovice := Pivovar vytvorJmeno: 'Velké Popovice' adresa: 'Ringhofferova 1, Velké Popovice'.
- pivovarVPopovice jmeno.
- 'Velké Popovice'
- pivovarVPopovice adresa.
- 'Ringhofferova 1, Velké Popovice'
Add Comment
Please, Sign In to add comment