P
Pelle Beckman
Hi all,
I have these classes (for a GUI library) that uses
alot of variables that need to be set at c-tor time
i.e.
class Button : Widget {
public:
Button (int x, int y) : Widget (BUTTON),
m_x (x),
m_y (y),
name (""),
etc /.../
Is it true that this generates better (meaning faster)
code than doing this?
Button (int x, int y) {
this->m_x = x;
this->m_y = y;
etc /.../
Thanks.
-- Pelle
I have these classes (for a GUI library) that uses
alot of variables that need to be set at c-tor time
i.e.
class Button : Widget {
public:
Button (int x, int y) : Widget (BUTTON),
m_x (x),
m_y (y),
name (""),
etc /.../
Is it true that this generates better (meaning faster)
code than doing this?
Button (int x, int y) {
this->m_x = x;
this->m_y = y;
etc /.../
Thanks.
-- Pelle