A Alejandro Jun 5, 2006 #1 Is it possible for a class to have a function available both as static and as instance function?
C Carl Daniel [VC++ MVP] Jun 5, 2006 #2 Alejandro said: Is it possible for a class to have a function available both as static and as instance function? Click to expand... Yes, but the parameter lists have to be different (just like any set of overloaded functions). -cd
Alejandro said: Is it possible for a class to have a function available both as static and as instance function? Click to expand... Yes, but the parameter lists have to be different (just like any set of overloaded functions). -cd
S Saad Rehmani Jun 5, 2006 #3 Hello Alejandro, Why do you want to have two different methods? Is there a difference in behavior between them? Saad
Hello Alejandro, Why do you want to have two different methods? Is there a difference in behavior between them? Saad
V Vadym Stetsyak Jun 6, 2006 #4 Hello, Alejandro! A> Is it possible for a class to have a function available both as static A> and as instance function? Compiler will not let you define twice or more methods with same name and same signature. There will be compiler error... -- Regards, Vadym Stetsyak www: http://vadmyst.blogspot.com
Hello, Alejandro! A> Is it possible for a class to have a function available both as static A> and as instance function? Compiler will not let you define twice or more methods with same name and same signature. There will be compiler error... -- Regards, Vadym Stetsyak www: http://vadmyst.blogspot.com