让我借助示例进行解释。我有一个var httpClientHandler = new HttpClientHandler();
httpClientHandler.ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => true; // DEBUGGING ONLY
var httpClient = new HttpClient(httpClientHandler);
扩展的Transaction
类(领域表)。我想创建一个RealmObject
类(领域表),该类将在删除交易后存储交易。我不能将两个DeletedTransaction
类分别扩展为Transaction
,而是将两个DeletedTransaction
类扩展为RealmObject
,而不是将它们都扩展为Transaction
RealmObject
类扩展了DeletedTransaction
类?
我知道从Java角度来看这是可能的,但是我想从Realm角度知道。这种方法的优点/缺点是什么?