On Oct 29, 1:17 am, J Rice <[email protected]> wrote:
> I have a question in the Lab for 1023, in listing Code-1.14.  Why,
> when we are writing the class for InternationalStudent, is there a
> method to create a new instance when no such code is needed for the
> teacher or student classes?
>
> This is the code snippet I'm wondering about, 
> fromhttp://www.javapassion.com/handsonlabs/javainheritance/index.html:
> /** Creates a new instance of InternationalStudent */
>     public InternationalStudent() {
>     }
In this case, it is optional. When not present, the interpreter will
provide one. That explains the inconsistencies in the classes
mentioned above.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to