Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 816 Bytes

compiler-error-c3670.md

File metadata and controls

30 lines (25 loc) · 816 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3670
Compiler Error C3670
11/04/2016
C3670
C3670
d0fa9c6e-8f90-48c7-9066-31b4fa5942eb

Compiler Error C3670

'override' : cannot override inaccessible base class method 'method'

An override can only take place on a function whose access level makes it available in a derived type. For more information, see Explicit Overrides.

The following sample generates C3670:

// C3670.cpp
// compile with: /clr /c
public ref class C {
// Uncomment the following line to resolve.
// public:
   virtual void g() { }
};

public ref class D : public C {
public:
   virtual void f() new sealed = C::g {};   // C3670
};