tJavaModule03fall25
Created 9/9/25
Work through Chapter 5 in the textbook. Watch all the videos in this module one by one and code up the activities in each video.
For additional study material, visit this site:
https://www.w3schools.com/java/java_oop.aspLinks to an external site. (click NEXT and view, study, and code the next seven pages)
https://www.w3schools.com/java/java_packages.aspLinks to an external site.
https://www.w3schools.com/java/java_inheritance.aspLinks to an external site.
Code up these three or four programs (details and sample code are in the GitHub Classroom Readme file and remote repo) and submit source code to your remote repo in GitHub Classroom. Please use the java class file names as specified here. If you know how to zip files, you may also
-
package: mystudent; class files: App.java, Student.java - Watch the video "Classes and Objects" and code up everything in the video
-
package: mystuff; class files: Driver.java, MyStuff.java - This is the challenge at the end of "Classes and Objects." Your choice of what "object in everyday life" you want to use for this program.
-
package: myanimals; class files: Animal.java, Cat.java, Dog.java - Watch the video "Static and the Cat Class" and code up everything to create two subclasses (Cat.java and Dog.java) from the Animal class. Note how the static variable numOfAnimals works in your program. Create an output statement that outputs the current number of animals objects you have whenever a new Dog or Cat object is created. This is how you will know your program is working properly.
-
Advanced (extra credit) - Code up the card game program at the end of Chapter 5 in our textbook.