Module 8: Inheritance¶
- Inheritance
- Subclass extends Superclass
- Why Use Inheritance?
- is-a vs. has-a
- is-a Substitution Test
- Summary
- Inheritance and Constructors
- Overriding Methods
- super Keyword
- Inheritance Hierarchies
- Polymorphism
- Inheritance Summary
- Mixed Up Code Practice
- Code Practice with Object Oriented Concepts
- Module 8 Studio
- Assignment 8: Zombies: The Final OBJECTive
- Assignment Setup
- Zombies… The Final OBJECTive
- Questions to ask if you get stuck
- Files
- Procedure & Recommended Workflow
- Entity
- Constructor and Instance Variables
- Is Zombie, X, and Y Accessors
- Radius Getter and Setter
- isAlive and wasConsumed
- distanceCenterToPoint(xOther, yOther)
- distanceEdgeToEdge(xOther, yOther, radiusOther)
- isTouching(xOther, yOther, radiusOther)
- moveAwayFrom(x, y)
- Investigate Find Closest
- checkBounds()
- update(entities), draw()
- Zombie
- Nonzombie
- Zombie Simulator
- Assignment Requirements
- Submitting your work
You have attempted of activities on this page