Session 2
13. september 12:15-15:45 at location D211

Plan and notes - Preparation - Exercises - Extra

Plans and notes

The Basic book to reference to is C# for Studens, Douglas Bell & Mike Parr, Addison Wesley



  • Numeric variables and calculations (+ - * / %)  - litterature chapter 4 - Variables and calculation
  • Types of variables (class, object, parametes, local) - litterature page 102 (chapter 6): Using objects, chapter 4 Variables and calculation, chapter 10 Writing classes
  • Livetimes and scopes
  • Converting (typecast, converting to and from string)


  • Using and defining object methods  - litterature chapter 5 - Methods and arguments (only value parameters)
  • Types (class, object, properti)
  • Properti methods - litterature page 102 (chapter 6)

Control structures:

  • Sellection (if, if-else, nested if, if-else-if, switch)  - litterature chapter 7
  • Reppetition (while, do-while, for, foreach) -  litterature chapter 8

Primitive GUI:

  • Form, botoms, edit-fields -  litterature chapter 2 - C# developement environment

I will talk about the topics in generel and try to give short examples.
You will work with new excersises.



The exercises from session 1 (except mabe z) must be done before this session
Take a close look at the application from the exercises, and see what you find in common and in difference to the language you know (C++, Java....)
Try to figure out what you already know about the topics, and what you guess about the rest.

Read a little about the topics you don't know something about - if you haven't got the book se at the toturial links at the course site



The exercises from session 1 (except mabe z) must be done before this session

New exercises to be started in this session and to be solved before the next session


Extra materials

Extra materials from the last session

Extra materials from this session (may be added after the session)