|
-
January 14th, 2003, 11:10 PM
#1
Question regarding nested interface...
Is it possible to create nested interface, like in C#.
C#:
public class Foo
{
public interface IFoo
{}
public Foo()
{
}
}
C++.NET
__gc public class CFoo: public Object
{
public:
__gc __interface IFoo
{
};
public:
CFoo(void)
{
}
protected:
void ~CFoo()
{
__super::Finalize();
}
};
test.cpp(16): error C3161: 'CFoo::IFoo' : nesting class, struct, union or interface in an interface is illegal; nesting interface in a class struct or union is illegal.
Or this feature available only in C#
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|