- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _06部分类
- {
- class Program
- {
- static void Main(string[] args)
- {
- }
- }
- public partial class Person
- {
- private string _name;
- public void Test()
- {
- }
- }
- public partial class Person
- {
- public void Test(string name)
- {
- // _name
- }
- }
- }
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _07密封类
- {
- class Program
- {
- static void Main(string[] args)
- {
- }
- }
- public sealed class Person:Test
- {
- }
- public class Test
- {
- }
- }