User | Post |
bumby
 
   

  
 
 
Since: 04-23-02
Since last post: 8367 days Last activity: 8374 days
|
|
Well, I do know that much about classes, I have actually made some programs in C++ (otherwise I would have no base for my opinion against it). It was the type cast from a class to a basic data type that confused me (still does, but I'll read up on it when I have time). |
Makoto
Moderator
 
   


  
 
 
Since: 02-19-02 From: England
Since last post: 8106 days Last activity: 8093 days
|
|
hehe
im lerning OOP and JAVA at Uni at the moment, doing a biiiiig project in JAVA (i think ive got a total of 7 classes in it so far, not included the standard ones like String obviously )
OOP isnt too hard to grasp once you've either read somthing on it or even better had it tought to you , just read up on it untill it makes sense , might take some time tho if its not a great text book, heh |
bumby
 
   

  
 
 
Since: 04-23-02
Since last post: 8367 days Last activity: 8374 days
|
|
Makoto: Tried Haskell? lol, I read allot of haskell when I was at Uni (guess you mean universety?)
Haskell = evil!! |
Makoto
Moderator
 
   


  
 
 
Since: 02-19-02 From: England
Since last post: 8106 days Last activity: 8093 days
|
|
hehe no, i havent try'd that, but i dont think i will looking at your warning
(and yes, by Uni i ment University (and there i was thinking that 'Uni' was an American slag word)) |
Noiboi
 
   

  
 
 
Since: 04-17-02 From: uk
Since last post: 8333 days Last activity: 8258 days
|
|
I always made that assumption till I told someone in America that I was at Uni and they didn't have a clue what I meant. |
Sasami
Goddess in Training
 
   


  
 
 
Since: 02-18-02 From: Back in texas! YAY! college sucked! Rating: 10 (1030 pts)
Since last post: 7697 days Last activity: 7697 days
|
|
When makoto first told me that I was assuming he ment that the name of the university was "Uni"  |
kei
 
   

  
 
 
Since: 04-26-02
Since last post: 8296 days Last activity: 8371 days
|
|
I can guess that uni means university... hehe
woo.... whole bunch of programming stuff that I forgot already (proves that if you don't use your sword, it gets rusty)
Hope I can get help in my next programming course here hahaha ^^
can I take a try at explaining what class is?
one can consider a class as a container that contains some data and some functions that are associated with it.
take example a string class:
it has:
an array of character that is dynamic in size (it can be done by using the memory in the heap)
a few function that lets you "play around" with that array of character, such as changing it's value
so in the main program I create a object of class string MyString, and set it equal to my name. Now I want to change it to something else, say "someone else". you can call some of the function that was associated with the class. The function will expand the character array size then change it to "someone else". But if you have an array of the character outside, you cannot use that function to make changes to the array because the functions are exclusively for the class only.
In a sense, the class is independent of the main program and forms its own data type.
Hope I didn't confuse you ^^
It was all done by the standard library. It's like the compilers are obligued to give it to you....programming is getting lazy these days (I never get the chance to learn it the "hard" way) |
Makoto
Moderator
 
   


  
 
 
Since: 02-19-02 From: England
Since last post: 8106 days Last activity: 8093 days
|
|
hehe, the 'hard' way, you obviously haven't used Delphi, Delphi is point and click compaired to java and C++, it does most of the coding for you, lol, but it does do it very very well, its acctually a nice little programme, altho a little limiting at times, but if you just want to be shown the ropes of programming, its probably a good start  |
adavus
 
   

  
 
 
Since: 05-10-02 From: Wichita, KS
Since last post: 8361 days Last activity: 8360 days
|
|
vb was made for RAD so it does things all easy like
the strings are automatically handled by VB, as are most things
they skip a lot of the stuff we have to do in c/c++
less control, faster development |
Mental Atrophy
 
   

  
 
 
Since: 05-14-02 From: Home
Since last post: 8334 days Last activity: 8284 days
|
|
yeah, arsenic is right about how the c++ string class works. Another interesting thing is that a good number of the c++ string functions can be used just as well on char arrays, making the string class a very nice tool even if you dont actually want to declare a string as opposed to a char array. |