Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2011
    Posts
    47
    Rep Power
    0

    Default create object from a class

    i have 2 class Block and MiniExcel , MiniExcel class is Constructor .

    in MiniExcel Class :
    public MiniExcel(int rowNum,int columnNum) is constructor.

    rowNum and ColumnNum is size of my 2D array.

    i want create an object from MiniExcel Class for using Blocks Of my 2D array in Block Class.

    when i use this:

    MiniExcel object = new MiniExcel();
    it say to me that put your row and column but i want use from rownum and column in my MiniExcel Class not my block Class.
    how can use my 2D array Blocks in Block class?

    Hope Someone understand me!
    Last edited by HearT.Hunt3r; 10-27-2011 at 08:17 PM.

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,789
    Rep Power
    7

    Default Re: create object from a class

    Huh?

    The MiniExcel constructor needs 2 int passed to it, row and columns. Regardless of where you create a MiniExcel object (in the Block class or in some other class) you have to pass those int values. So somewhere in the Block class you need to work out what those values are and pass them to the MiniExcel constructor.

Similar Threads

  1. Replies: 3
    Last Post: 05-02-2011, 04:37 AM
  2. Replies: 1
    Last Post: 02-02-2011, 06:11 PM
  3. Replies: 2
    Last Post: 06-22-2010, 04:29 AM
  4. Replies: 3
    Last Post: 03-15-2010, 08:44 PM
  5. Replies: 1
    Last Post: 04-09-2008, 02:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •