Dynamic Web Development with Seaside

Buy PDF Buy Print

6.3.2Adding Some Methods

Now we define some instance methods to initialize and change the value of the counter.

WebCounter>>initialize
super initialize.
count := 0
WebCounter>>increase
count := count + 1
WebCounter>>decrease
count := count - 1

Copyright © 23 September 2017 Stéphane Ducasse, Lukas Renggli, C. David Shaffer, Rick Zaccone
This book is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 license.

This book is published using Seaside, Magritte and the Pier book publishing engine.