Quantcast
Channel: Animal inheritance hierarchy - Code Review Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by TheCoffeeCup for Animal inheritance hierarchy

private Boolean isWild = true; // is the animal wild?private Boolean hasSharpPointyTeeth = false; // does it have sharp, pointy teeth?!Why are you using the wrapper class? Use the primitive boolean...

View Article



Animal inheritance hierarchy

I'm trying to figure out if I'm doing superclasses right. Also, I welcome critique on Java structure/syntax etc.Animal.java:public class Animal{ private static int counter = 0; // how many animals we...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images