class ConsoleInfo
{
private String conTitle;
private double conPrice;
private int conQty;
private String conPic;
private static String empPassword;
ConsoleInfo(String title, double price, int qty,String pic)
{
conTitle = title;
conPrice = price;
conQty = qty;
conPic = pic;
}
/*
Finish the class off with the various set/get methods
here
*/
public void setTitle(String a)
{
conTitle = a;
}
public String getTitle()
{
return conTitle;
}
public void setPrice(double a)
{
conPrice = a;
}
public double getPrice()
{
return conPrice;
}
public void setQty(int a)
{
conQty = a;
}
public int getQty()
{
return conQty;
}
public void setPic(String a)
{
conPic = a;
}
public String getPic()
{
return conPic;
}
public void setPass(String a)
{
empPassword = a;
}
public String getPass()
{
return empPassword;
}
}
///////////////////////////////
class ConsoleList
{
ConsoleInfo[] conList;
public void createList()
{
conList = new ConsoleInfo[7];
conList[0] = new ConsoleInfo("Xbox One",549.99,45,"xbox-one.jpg");
conList[1] = new ConsoleInfo("Xbox 360",321.99,92,"xbox360.jpg");
conList[2] = new ConsoleInfo("PS4",678.99,72,"ps4.jpg");
conList[3] = new ConsoleInfo("PS3",447.99,11,"ps3.jpg");
conList[4] = new ConsoleInfo("Wii U",354.99,23,"wii-U.jpg");
conList[5] = new ConsoleInfo("Sega Firecore",110.99,0,"sega-Firecore.jpg");
conList[6] = new ConsoleInfo("Steam Machine",784.99,1,"steamMachine.jpg");
}
}