C#定义类的protected访问修饰符是指什么意思?
来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/08/12 08:09:01
C#定义类的protected访问修饰符是指什么意思?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
A a = new A();
B b = new B();
}
protected class A
{
}
protected class B :A
{
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
A a = new A();
B b = new B();
}
protected class A
{
}
protected class B :A
{
}
}
}
![C#定义类的protected访问修饰符是指什么意思?](/uploads/image/z/18771536-56-6.jpg?t=C%23%E5%AE%9A%E4%B9%89%E7%B1%BB%E7%9A%84protected%E8%AE%BF%E9%97%AE%E4%BF%AE%E9%A5%B0%E7%AC%A6%E6%98%AF%E6%8C%87%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%3F)
受保护的意思,就是说这个方法只能是继承他的类可以用,就是他儿子能用,其他都不能用的意思.类也是一样
什么叫protected访问修饰符?有什么作用?请举个例子?
C++ pi的定义我定义了类CTextclass CText:public CDraw{...protected:con
this work is protected什么意思
This memory card is protected 什么意思?
C#调用C++的dll总是报错 Attempted to read or write protected memory.
C#调用C++的dll报错 Attempted to read or write protected memory.Th
c#中如何定义一个公共的类啊.
C#中Decimal什么意思
C#里buddy什么意思
c#构造函数没有显示的返回类型什么意思
C#中的 textBox1.Text.Trim() 的 Trim()表示什么意思
C# 一个类上面写一个中括号什么意思