Delphi class can also be written

xiaoxiao2021-03-05  22

Copyright Notice: This article is completed by Lyris, started 9CBS, the author retains Chinese copyright. No commercial use is not permitted without permission. Welcome to the reprint, but please keep the article and copyright statement complete. For contact, please send an email: lyricsoft@gmail.com

TYPE TDEMO = Class AA: String; BB: String;

Using the TDEMO.CREATE DOTRY AA: = 'test'; bb: = aa; // set method and get method have FINALLY FREE; END;

The key is that the class's code is simple, and for only the Property class with similar structures, it is especially convenient :)

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

New Post(0)