Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Why struct instead of class?
Why struct instead of class? [message #21815] |
Sat, 06 June 2009 06:47  |
jeremy_c
Messages: 175 Registered: August 2007 Location: Ohio, USA
|
Experienced Member |
|
|
Why do the example use struct instead of class? i.e.
struct MyAppWindow : TopWindow {
virtual void Paint(Draw& w) {
w.DrawRect(GetSize(), SWhite);
w.DrawText(20, 20, "Hello world!", Arial(30), Magenta);
}
MyAppWindow() {
Title("My application").Zoomable().Sizeable();
}
};
Jeremy
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 00:19:50 CEST 2025
Total time taken to generate the page: 0.00480 seconds
|