Traditional Culture Encyclopedia - Traditional culture - What do you mean by instantiating the interface of derived class objects in C #
What do you mean by instantiating the interface of derived class objects in C #
Objects can represent almost all objects and concepts. For example, a person, an event, a car, a book, a file, a computer, a shortcut key, a language, a graphic, a management style and so on can all represent an object. All physical objects can represent objects; All concepts can also represent objects. That is to say, all objects, all logos, all names, all nouns, all concepts and so on. Can be called an object.
Derived class: a class that inherits from a parent type.
Object instantiation: The process of creating an object from a class.
Interface is a reference type, through which multiple inheritance can be realized. The interface in C# has some modifiers, such as new, public, protected, internal and private. Only abstract members can be declared in an interface (so you can't instantiate the interface directly (that is, you can't declare the instance object of the interface with the new operator), and you can't declare * * * owned fields or private member variables. Interface declarations do not include data members, but only methods, properties, events, indexes and other members.
- Previous article:The difference between comics and Chinese painting
- Next article:On the differences and characteristics of Chinese and western painting art
- Related articles
- What is the production and shooting cost of the commercial?
- Is Wei Xiao Eighteen Good or Bad?
- Flexible assembly of components
- Research on residential architecture art and modern application?
- Is traditional crocheting a humanities and social science?
- Which subsidiary of Gansu air travel is better?
- The special significance of 16 birthday
- Wuyishan specialty
- Talk about your views on environmental protection?
- Perch is one of the four famous freshwater fishes in China. What are four ways to catch bass with a pole?