Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Learn Java overloaded methods in 6 minutes! 🍕
Play lesson

Java tutorial for beginners ☕ - Learn Java overloaded methods in 6 minutes! 🍕

5.0 (4)
40 learners

What you'll learn

This course includes

  • 12 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

#java #javatutorial #javacourse public class Main { public static void main(String[] args){ // overloaded methods = methods that share the same name, // but different parameters // signature = name + parameters String pizza = bakePizza("flat-bread", "mozzarella", "pepperoni"); System.out.println(pizza); } static String bakePizza(String bread){ return bread + " pizza"; } static String bakePizza(String bread, String cheese){ return cheese + " " + bread + " pizza"; } static String bakePizza(String bread, String cheese, String topping){ return topping + " " + cheese + " " + bread + " pizza"; } }

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere