Hi
Thanks for the reply and for the code part.
Code:
public <Class Name> () {
background = new Square();
}
I have tried it but not sure what you are trying to say in the code. Any more explanation will be appreciated. Here I use this part of code to get a dice with one spot.
Code:
Square s = new Square();
Circle c1 = new Circle();
Circle c2 = new Circle();
Circle c3 = new Circle();
Circle c4 = new Circle();
Circle c5 = new Circle();
Circle c6 = new Circle();
Circle c7 = new Circle();
Dice di = new Dice(s, c1, c2, c3, c4, c5, c6, c7);
Any explanation. Thanks again.
Bookmarks