Page 1 of 1

About Question enthuware.ocajp.i.v7.2.907 :

Posted: Sat Feb 22, 2014 3:58 pm
by crux terminatus
Why does the constructor for the Bird class need to be made public? We are in a single package throughout this example. Providing default, not public, access to the constructor should be enough.

Re: About Question enthuware.ocajp.i.v7.2.907 :

Posted: Sat Feb 22, 2014 9:09 pm
by admin
Yes, protected and default will work as well. This has now been updated to make it clear.

thank you for your feedback!