Interface in VB.NET

zhaozj2021-02-16  46

1. Whether it is a class or a method and attribute, you must specify its interface execution. public class Person implements IPerson public property FirstName () as string implements IPerson.FirstNameend propertypublic function FullName () as string implements IPerson.FullNameend functionend class2. Interface allows multiple inheritance is the only type of public class Person implements IPerson implements ICleverPerson end class

转载请注明原文地址:https://www.9cbs.com/read-20740.html

New Post(0)