Results 1 to 14 of 14

Thread: Class Design

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Resolved Class Design

    Need help with class design. I've got a DataType Class and I need help on making a Collection of this class. Kinda new to Java to please understand. Thanks.

    This is DataType class
    VB Code:
    1. import java.util.*;
    2.  
    3. public class DataType{
    4.     String sqltype,
    5.         javatype,
    6.         csharptype,
    7.         vbtype;
    8.     public DataType(){
    9.     }
    10.     public DataType(String sqltype,
    11.         String javatype,
    12.         String csharptype,
    13.         String vbtype){
    14.         this.sqltype=sqltype;
    15.         this.javatype=javatype;
    16.         this.csharptype=csharptype;
    17.         this.vbtype=vbtype;
    18.     }
    19. . . .
    20. }
    Now I want to make a collection of that class. Something like
    VB Code:
    1. import java.util.*;
    2. public class DataTypes extends [i]IDontKnow[/i]{
    3.     public DataTypes(){}
    4. }
    where I can return something of type DataType and a public function add for adding of type DataType. Please help. Any recommendations and links for tutorials are greatly appreciated. Thank you.
    Last edited by nebulom; Mar 9th, 2005 at 09:27 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width