Is it possible for a class to have a function available both as static
and as instance function?

Re: Static and non static functions by Carl

Carl
Mon Jun 05 11:13:56 CDT 2006

"Alejandro" <alebrozzo@gmail.com> wrote in message
news:1149517677.979822.76950@i40g2000cwc.googlegroups.com...
> Is it possible for a class to have a function available both as static
> and as instance function?

Yes, but the parameter lists have to be different (just like any set of
overloaded functions).

-cd



Re: Static and non static functions by Saad

Saad
Mon Jun 05 14:00:36 CDT 2006

Hello Alejandro,

Why do you want to have two different methods? Is there a difference in behavior
between them?

Saad


> Is it possible for a class to have a function available both as static
> and as instance function?
>



Re: Static and non static functions by Vadym

Vadym
Tue Jun 06 03:13:27 CDT 2006

SGVsbG8sIEFsZWphbmRybyENCg0KIEE+IElzIGl0IHBvc3NpYmxlIGZvciBhIGNsYXNzIHRvIGhh
dmUgYSBmdW5jdGlvbiBhdmFpbGFibGUgYm90aCBhcyBzdGF0aWMNCiBBPiBhbmQgYXMgaW5zdGFu
Y2UgZnVuY3Rpb24/DQoNCkNvbXBpbGVyIHdpbGwgbm90IGxldCB5b3UgZGVmaW5lIHR3aWNlIG9y
IG1vcmUgbWV0aG9kcyB3aXRoIHNhbWUgbmFtZSBhbmQgc2FtZSBzaWduYXR1cmUuDQpUaGVyZSB3
aWxsIGJlIGNvbXBpbGVyIGVycm9yLi4uDQoNCi0tDQpSZWdhcmRzLCBWYWR5bSBTdGV0c3lhaw0K
d3d3OiBodHRwOi8vdmFkbXlzdC5ibG9nc3BvdC5jb20=