Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New VB Features
Message
From
12/10/2000 21:05:12
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00425458
Message ID:
00428832
Views:
17
>>I agree with your definition with the exception that in C++, a structure can have member functions (aka methods).
>
>Umm, no. A structure can contain a pointer to a function, but a structure will not directly contain methods. As the gentleman from Georgia has pointed out, structures are contiguous blocks of memory, and it's kind of hard to squeeze a function into something that is a predefined block.

C++ structure definitions can contain functions. Of course the functions are not actually in the block of data, they do exist in the declaration and are available to any C++ code that uses the declaration.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform