Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mock01a Q36

 
Dmitry Golynkin
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
code:

Explanation:
Line 2 is fine since array f1 contains elements of type G which is a subclass of F. The cast to G[]is needed, though, since the declared type of f1 is F[] and F is a superclass of G.
May be line 2 must be written one line below?
Can you explain me that line by line?
Thank you.
[ August 27, 2002: Message edited by: Dmitry Golynkin ]
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you,
I have corrected the mistakes and uploaded the new version
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic