[Solved] Need help to understand code [closed]


PizzaT array[] = new PizzaT[2];             //Would this be an instance?

No, this is an array of PizzaT

PizzaT pizzaList = new PizzaT(" ", "", -1); //Would this be an instance?

Yes, this is a PizzaT instance

PizzaT(String n, String d, int m)      //This must be the constructor

Yes. A constructor looks like a method but without any return type

PizzaT sort(PizzaT pizzaList[], int l, String n)    //What is the pizzaList here
//Is it an instance too?

No. pizzaList here is an Array (see the brackets). This array may contain PizzaT instances or not. (in a sense that may just be empty)

1

solved Need help to understand code [closed]