CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2014
    Posts
    4

    Post Can a class be declared as static

    Can a class be declared as static

  2. #2
    Join Date
    Aug 2014
    Posts
    3

    Re: Can a class be declared as static

    Yes, intern classes can be declared as static.

    Here is an example:

    public class OuterClass {
    private static class InnerClass {
    }
    }
    or

    public class OuterClass {
    public static class InnerClass {
    }
    }

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured