What will be the output of the following program?
class FoodItems
{
public static void main(String s[])
{
Noodles eat = new Noodles();
eat.print();
}
}
class Maggi
{
private int spoon = 3;
private int sticks = 4;
}
class Noodles extends Maggi
{
private int powder = 1;
private int fire = 2;
void print()
{
System.out.println(powder + " " + fire + " " + sticks + " " + spoon);
}
}