当前位置: > 职场指南 > 面试试题 > 本文内容

程序员面试题精选100题(53)-C++/C#面试题(2) (6)

发布时间:2019-09-22整理:admin阅读:

        public A(string text)

        {

            Console.WriteLine(text);

        }

    }

 

    class B

    {

        static A a1 = new A("a1");

        A a2 = new A("a2");

 

        static B()

        {

            a1 = new A("a3");

        }

 

        public B()

        {

            a2 = new A("a4");

        }

    }

 

    class Program

    {

        static void Main(string[] args)

        {

            B

欢迎分享转载→ 程序员面试题精选100题(53)-C++/C#面试题(2) (6)

相关文章

用户评论

精品推荐

图文资讯