Can a class be declared as static
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Can a class be declared as static

  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
    2

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center