Hey Its Mitth'raw'nuruodo,
I just have a couple of questions:
1. Can FB do methods?
2. If it can how/where do you define them, in the TYPEs?
3. Can you make a TYPE in another file and include it in a program?
4. If so how do you do it (include it part)?
5. How do you make the TYPE's variables in the include file private so they can't be referenced or changed in the program?
6. How do you make some of the methods in that TYPE private too?
Thank You,
Thrawn
Methods
Re: Methods
No, not yet.Thrawn89 wrote:1. Can FB do methods?
Yes.Thrawn89 wrote:3. Can you make a TYPE in another file and include it in a program?
Thrawn89 wrote:4. If so how do you do it (include it part)?
Code: Select all
#include "file_to_include.file_extension"
Regards,
Mark
Pseudo-OO can be done now like in http://www.freebasic.net/forum/viewtopic.php?t=1040
Thanks, ya I read that topic, well, and just waiting now for you guys to code in the OOP stuff into FB...
but Im glad it is intended for future releases of FB,
*sigh* in the mean time I'll just havefta settle for functions and that stuff to make fake oop...oh well
Thanks,
Thrawn
P.S. just a fun question: The BASIC language is procedural programming, and a lot of other languages are object oriented, but when FB supports oop what would it be classifed as? A procedural object oriented programming hybrid or mabey POOP for short? rofl
Of course I dont know what people will think when they ask "Whats FB?" and we say "FB is POO" (FreeBasic is procedural object oriented)...hahaha
Ok thats enough ;)
but Im glad it is intended for future releases of FB,
*sigh* in the mean time I'll just havefta settle for functions and that stuff to make fake oop...oh well
Thanks,
Thrawn
P.S. just a fun question: The BASIC language is procedural programming, and a lot of other languages are object oriented, but when FB supports oop what would it be classifed as? A procedural object oriented programming hybrid or mabey POOP for short? rofl
Of course I dont know what people will think when they ask "Whats FB?" and we say "FB is POO" (FreeBasic is procedural object oriented)...hahaha
Ok thats enough ;)
-
- Posts: 612
- Joined: Jun 15, 2005 13:22
- Location: Upstate NY
- Contact: