/*****************************************************************/ /* Copyright 2013 Code Strategies */ /* This code may be freely used and distributed in any project. */ /* However, please do not remove this credit if you publish this */ /* code in paper or electronic form, such as on a web site. */ /*****************************************************************/ package com.cakes; public class ThreeElement implements NumberElement { int a; int b; int c; public ThreeElement(int a, int b, int c) { this.a = a; this.b = b; this.c = c; } @Override public void accept(NumberVisitor visitor) { visitor.visit(this); } }