The Artima Developer Community
Sponsored Link

Java Answers Forum
two constructor-call parameters to array and to another constructor-call?

1 reply on 1 page. Most recent reply: Nov 25, 2002 5:55 PM by Jay Kandy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Julia

Posts: 6
Nickname: julia
Registered: Nov, 2002

two constructor-call parameters to array and to another constructor-call? Posted: Nov 24, 2002 6:26 PM
Reply to this message Reply
Advertisement
two constructor-call parameters to array and to another constructor-call? Is it possible?


Class1 programs = new ProgramInformation(name, length);

programs[] include name and length.

TVSchedule schedule = new TVOhjelmisto(channel, date, programs[]);


System.out.print(schedule);

TV4
1.1.2000
Program
10
AnotherProg ram
123


Jay Kandy

Posts: 77
Nickname: jay
Registered: Mar, 2002

Re: two constructor-call parameters to array and to another constructor-call? Posted: Nov 25, 2002 5:55 PM
Reply to this message Reply
> two constructor-call parameters to array and to another
> constructor-call? Is it possible?
>
>
> Class1 programs = new ProgramInformation(name, length);
>
> programs[] include name and length.
>
> TVSchedule schedule = new TVOhjelmisto(channel, date,
> programs[]);
>

This is confusing. Please take some time to explain the issue. It doesnt make sense why a new TVOhjelmisto would create a TVSchedule object.

Flat View: This topic has 1 reply on 1 page
Topic: Why Not reply Artimians!!! Previous Topic   Next Topic Topic: how to store addressbook values using Vectors

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use