Overview
This week’s exercises provide you with an opportunity to define your own classes. As a reminder, here is a very simple class definition:
public class Circle { private double radius; // an instance variable public Circle(double radius){ this.radius = radius; // the instance variable is assigned the value // passed by the method parameter } public double getArea(){ return radius * radius * Math.PI; } }
Recall that after the initial declaration, you should first define your instance variables, then write your constructor and finally define your instance methods.
Difficulty | Question | Description |
---|---|---|
warmup | Q1 | Daleks |
Q2 | Arrays and Reference Types (Pair Programming) | |
core | Q3 | Make your Own CreditCard |
Q4 | DNA Strand | |
Q5 | Vector3D (Pair Programming) | |
Q6 | Image Editor |