I guess this is an easy one, but my Java-book just doesn't mention it, so here it goes:
There's a class called ByteArrayInputStream and I have a subclass myByteArrayOutputStream. I did that to get the protected member variable count from ByteArrayOutputStream (I had another way of doing it, but I like to experiment, so that's why I tried this rather cumbersome method). The class looks as follows:
class myByteArrayOutputStream extends ByteArrayOutputStream
//Extended class to get the protected member variable count from ByteArrayOutputStream
public int getByteCount()
The way this class is defined and built, it only supports the default constructor, without arguments. I know to make more overloaded constructors, but I want them to be inherited from ByteArrayOutputStream. Let's say, myByteArrayOutputStream(int size) should be the same as ByteArrayOutputStream(int size).
I guess this is easy, so, 100pts for anyone with a good answer :)
Thanks in advance,