java-programming-tutorial
java-programming-tutorial copied to clipboard
Java Programming Tutorial OOP Exercises. A basic guide to learning java at FPT University for beginners
Java Programming Tutorial OOP Exercises
FPT University
hwww3.ntu.edu.sg
1. Exercises on Classes
1.1 An Introduction to Classes and Instances by Example - The Circle Class1.2 Ex: Yet Another Circle Class
1.3 Ex: The Rectangle Class
1.4 Ex: The Employee Class
1.5 Ex: The InvoiceItem Class
1.6 Ex: The Account Class
1.7 Ex: The Date Class
1.8 Ex: The Time Class
1.9 Ex: The Ball Class
2. Exercises on Composition
2.1 An Introduction to OOP Composition by Example - the Author and Book Classes2.2 (Advanced) The Author and Book Classes Again - An Array of Objects as an Instance Variable
2.3 Ex: The Author and Book Classes - Your Turn
2.4 Ex: The Customer and Invoice classes
2.5 Ex: The Customer and Account classes
2.6 Ex: The MyPoint Class
2.7 Ex: The MyLine and MyPoint Classes
2.8 Ex: The MyCircle and MyPoint Classes
2.9 Ex: The MyTriangle and MyPoint Classes
2.10 Ex: The MyRectangle and MyPoint Classes
3. More Exercises on Classes
3.1 Ex: The MyComplex class3.2 Ex: The MyPolynomial Class
3.3 Ex: Using JDK's BigInteger Class
3.4 Ex: The MyTime Class
3.5 Ex: The MyDate Class
3.6 Ex: Bouncing Balls - Ball and Container Classes
3.7 Ex: The Ball and Player Classes
4. Exercises on Inheritance
4.1 An Introduction to OOP Inheritance by Example - The Circle and Cylinder Classes4.2 Ex: Superclass Person and its subclasses
4.3 Ex: Point2D and Point3D
4.4 Ex: Point and MovablePoint
4.5 Ex: Superclass Shape and its subclasses Circle, Rectangle and Square
4.6 Ex: Superclass Animal and its subclasses
5. Exercises on Composition vs Inheritance
5.1 Ex: The Point and Line Classes5.2 Ex: The Circle and Cylinder Classes Using Composition
6. Exercises on Polymorphism, Abstract Classes and Interfaces
6.1 Ex: Abstract Superclass Shape and Its Concrete Subclasses6.2 Ex: GeometricObject Interface and its Implementation Classes Circle and Rectangle
6.3 Ex: Movable Interface and its Implementation MovablePoint Class
6.4 Ex: Movable Interface and its Implementation Classes MovablePoint and MovableCircle
6.5 Ex: Interfaces Resizable and GeometricObject
6.6 Ex: Abstract Superclass Animal and its Implementation Subclasses
6.7 Ex: Another View of Abstract Superclass Animal and its Implementation Subclasses
6.8 Ex: Interface Movable and its implementation subclasses MovablePoint and MovableCircle
7. More Exercises on OOP
7.1 Ex: The Discount System7.2 Ex: Polyline of Points with ArrayList