Back to Browse

Creating a Food App Class in Java πŸ”

20 views
Mar 23, 2026
8:37

Hey everyone! In this video, I walk you through creating a food app demo in CodeHS, specifically focusing on building a Food class with instance variables for name and calories. I demonstrate how to implement constructors, getters, setters, and a toString method, while also creating instances for burgers, French fries, and Coke. I also show how to calculate total calories based on user input using a scanner. If you have any questions or need clarification, feel free to leave comments!

Download

1 formats

Video Formats

360pmp47.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Creating a Food App Class in Java πŸ” | NatokHD