hello
no , it is just to give the fields of the class initial values and they can
be change anywhere and at any time. the super constructor understands that
the first argument of the constructor which it is used in is of type double
, the second is of type string and etc, you may use this way or you may
specify the names of the arguments as used to do with the super constructor.

On Fri, Sep 4, 2009 at 6:12 AM, mary <[email protected]> wrote:

>
> In the Java Polymorphism lab part (1.2) Add ChildrenBook and Cartoon,
> the constructors for the ChildrenBook and Cartoon classes receive the
> parameters regularPrice, publisher, and yearPublished, but the super()
> call in each uses hard-wired values:
> super(100, "Sun press", 2002);    //from ChildrenBook class
> and
> super(150, "Sun press", 1978);   //from Cartoon class
>
> Is this as intended?
>
> >
>


-- 
Abbas Zaini

--~--~---------~--~----~------------~-------~--~----~
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