soen343-week2 - SOEN 343 Software Design Section H Fall...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
SOEN 343 Software Design Section H Fall 2006 Dr Greg Butler http://www.cs.concordia.ca/~gregb/home/soen343h-f06.html
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Announcements Tutorials start this Friday Tutorial/Lab location Still TBD – watch web page Additional tutorial slot Fridays 16:45 to 17:35 in H-929
Background image of page 2
OO Review OO programming Java: class, interface, ‘static’ Static and dynamic typing Polymorphism, delegation exceptions OO development using UML models
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Java – some details to be read on your own. Primitive types: include Floating point : float, double . Integral : byte,short,int,long,char . boolean , is not assignment compatible with integral types; explicit conversion required. boolean b = (i == 0 ? false : true); Class types for “boxing”: Float, Double, Byte, … Boolean . E.g. Boolean o = new Boolean(b);
Background image of page 4
java.util.Vector Vector class Implements a growable array of objects. Example of use String s = …; Vector v = new Vector(); v.add(s); // adds to end String t = v.elementAt(0); v.remove(s); int i = v.size();
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Java Basics – Hello World! public class HelloWorld  {   public static void main(String[] args)  {      System.out.println("HelloWorld!");   } } Illustrates: How to write the main method to be called when a program is invoked. Output (console).
Background image of page 6
Object and Variables: Run-time Initialization Local variables: Are not implicitly initialized.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 32

soen343-week2 - SOEN 343 Software Design Section H Fall...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online