2 ms·
Never mind that the function casts (coerces? constructs?) ints to bread and ints to bacon. Let alone how it's got a special "plus" operator that can work on bre
by egwynn 13y ago
Never mind that the function casts (coerces? constructs?) ints to bread and ints to bacon. Let alone how it's got a special "plus" operator that can work on bread/bacon and return a sandwich...
- cosmotron 13y agoIf you look carefully at the screenshot, you'll see that bread and bacon are declared to be ints above the method. =]
- galaktor 13y agoClearly bad practice to be using raw integers here. They should at least be using enums. public enum Ingredients { BREAD, BACON } public enum Delicatessen { BACON_SANDWICH }