all: intial code import

This commit is contained in:
2018-05-12 15:25:36 +02:00
parent 1f20ee2574
commit 9f47b858c3
59 changed files with 375 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
I represent a contact book.
I have contacts.
Collaborators:
- Veit Heller <veit@veitheller.de>
Instance Variables
contacts: a List of Contacts

View File

@@ -0,0 +1,16 @@
instance creation
createDefault
^ self new
addContact: (Contact
newNamed: 'Damien Cassou'
email: 'damien@cassou.me');
addContact: (Contact
newNamed: 'Marcus Denker'
email: 'marcus.denker@inria.fr');
addContact: (Contact
newNamed: 'Tudor Girba'
email: 'tudor@tudorgirba.com');
addContact: (Contact
newNamed: 'Clara Allende'
email: 'clari.allende@gmail.com');
yourself

View File

@@ -0,0 +1,3 @@
accessing
addContact: aContact
contacts add: aContact

View File

@@ -0,0 +1,3 @@
accessing
contacts
^ contacts

View File

@@ -0,0 +1,3 @@
initialization
initialize
contacts := OrderedCollection new.

View File

@@ -0,0 +1,3 @@
accessing
removeContact: aContact
contacts remove: aContact

View File

@@ -0,0 +1,14 @@
{
"category" : "ContactBook",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "VeitHeller 5/12/2018 14:19",
"instvars" : [
"contacts" ],
"name" : "ContactBook",
"pools" : [
],
"super" : "Object",
"type" : "normal" }