Home » U++ Library support » U++ Widgets - General questions or Mixed problems » when to use struct, when - class, for a derived widget?
|
Re: when to use struct, when - class, for a derived widget? [message #220 is a reply to message #205] |
Sun, 04 December 2005 18:34 |
|
mirek
Messages: 13984 Registered: November 2005
|
Ultimate Member |
|
|
Well, I think this is more about personal preferences and actual situation....
Personally, I use "class" if I am creating some widget that is supposed to be reused and will therefore have to have clean interface and well defined public members.
In "top-level" (or "end-user", I mean apps I create for customers) applications where I am about to create some widget/window to resolve one-time problem, I am often using "struct" for everything (without "private" section).
Actually, to tell the truth, for "end-user" apps, I am often producing the least refined code...
|
|
|
Goto Forum:
Current Time: Mon Jun 10 11:48:06 CEST 2024
Total time taken to generate the page: 0.02855 seconds
|