Java overloaded constructors 🍕

preview_player
Показать описание
Java overloaded constructors multiple constructor tutorial example for beginners

#Java #overloaded #constructors
Рекомендации по теме
Комментарии
Автор


public class Main {

public static void main(String[] args) {


Pizza pizza = new Pizza("thicc crust", "tomato", "mozzerella", "pepperoni");

System.out.println("Here are the ingredients of your pizza: ");





}
}

public class Pizza {


String bread;
String sauce;
String cheese;
String topping;

Pizza(){

}

Pizza(String bread){

this.bread = bread;
}

Pizza(String bread, String sauce){

this.bread = bread;
this.sauce = sauce;
}

Pizza(String bread, String sauce, String cheese){

this.bread = bread;
this.sauce = sauce;
this.cheese = cheese;
}

Pizza(String bread, String sauce, String cheese, String topping){

this.bread = bread;
this.sauce = sauce;
this.cheese = cheese;
this.topping = topping;
}

BroCodez
Автор

Thank you! You are really good with explaining Java concepts - and under 9 minutes is even better.

nathanielpolzin
Автор

Sit Back, Relax & Enjoy the show is my Favourite Part.

kishanpareek
Автор

I like the fact that you are so authentic by saying I probably spelled that wrong, reminding myself. Thank you for your videos, you provide education for free and I hope ppl like yourself will be paid more than those pretenders on YouTube that "help" people by giving money to homeless (just an example among so many) that pretend to be so kind and videotape themselves doing an act of kindness (kinda ironic). I wonder could we also donate to your channel somehow or not? Personally I do not own much but comparing your channel to most Udemy classes you deserve that 10 euros way more than those aforementioned and I would be more glad to support you even with that amount. Thanks bro.

heyou
Автор

Thank you for this, simple and effective explanation!

catea
Автор

This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro

pavelkvasnicka
Автор

The only youtuber I ve seen whose comment section has nothing but thank you comments. Speaks Volumes!
And thank you for doing an amazing job!

mohammadreza
Автор

Awaiting to see next series or lessons for Java Advanced!

filiprashev
Автор

Vegan pizza?!?
That was hilarious bro! 😅😂
Thank you so much for these videos. Yours is the most full and systematic playlist to learn java with fun and a Bro language on YouTube! ❤

infinitepossibilities
Автор

You are batter than other teacher! Thank you for this video!😄😄

nutkimheng
Автор

I am happy that i am seeing your channel growing up! Keep going! U are doing a great work

DamiansCraft
Автор

Well explained! Keep up the good work!

mateionea
Автор

How can you be so great tutor? I wish i found you as soon as you uploaded video last year. I mean it, you are a great teacher.
I was totally not interested in Java almost quting thus job. But now i'm interested. And one day, i want to take you C, python too.

lpcfnnq
Автор

Nice one bro.
As always, excellently explained.

FukSN
Автор

Been watching your videos since 2 years, you are mine hero of all programming languages

rdxdevil
Автор

You're a hero bro keep the good work

dimitarBerbatov
Автор

this is awesome ! come tech in my college 😍😍😍😍.

Nioh_x