Professional Documents
Culture Documents
Greenfoot
Understanding Abstraction
Overview
Abstraction
Abstraction Example
Abstraction Principle
Abstraction Techniques
Constructor Example
public ZombieWorld()
{
super(600, 400, 1);
for (int i=1; i<10; i++) {
addObject (new Zombie (varKey=i, varSound=i+.wav) varX, varY);)
}
}
if (Greenfoot.isKeyDown("right") )
{
moveRight();
}
}
19 Copyright 2012, Oracle and/or its affiliates. All rights
reserved.
Understanding Abstraction
Terminology
Summary
Practice