Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Classes
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BoyGenius




PostPosted: Wed May 14, 2003 6:47 pm   Post subject: Classes

k i read the tutorail and i dont understand the export and the import. how do u know which ones you need to write the code for ?? the import and the export. Cuz i am doing a program on calendar and i am a little confused.
Sponsor
Sponsor
Sponsor
sponsor
Catalyst




PostPosted: Wed May 14, 2003 6:58 pm   Post subject: (No subject)

import - Tells the class what varibles,procs,etc. that need to be brought in from outside the class

export - whatever is on the export list can be accessed from outside the class (using the ->) otherwise it can only be accessed inside the class
BoyGenius




PostPosted: Wed May 14, 2003 8:27 pm   Post subject: (No subject)

Can the import and the export list have more than 1 item in them ?
BoyGenius




PostPosted: Wed May 14, 2003 8:29 pm   Post subject: (No subject)

like this ?

code:

class data
 export day,month,year,Get,Set,Put,calendar
 import Month_Name,Leap_Year,Max_Day,Zeller
end data
Catalyst




PostPosted: Wed May 14, 2003 9:40 pm   Post subject: (No subject)

yup just like that, tho import goes above export

you can export nearly everything (except dynamic arrays)

if u want to export everything just

code:

class what
export all
end what
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: