नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'function' : member function redeclaration not allowed
Remarks
You cannot redeclare a member function. You can define it, but not redeclare it.
Examples
The following example generates C2761.
// C2761.cpp
class a {
int t;
void test();
};
void a::a; // C2761
void a::test; // C2761
Nonstatic members of a class or structure cannot be defined. The following example generates C2761.
// C2761_b.cpp
// compile with: /c
struct C {
int s;
static int t;
};
int C::s; // C2761
int C::t; // OK