Advertisement
D98rolb

Untitled

Feb 14th, 2024
1,525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 1.33 KB | None | 0 0
  1. unit BoldCase;
  2.  
  3. interface
  4.  
  5. type
  6.   TBoldObject = class
  7.  
  8.   end;
  9.  
  10.   TBoldObjectList = class
  11.   private
  12.     function GetBoldObject(index: Integer): TBoldObject;
  13.     procedure SetBoldObject(index: Integer; NewObject: TBoldObject);
  14.   public
  15.     procedure Add(BoldObject: TBoldObject);
  16.     property BoldObjects[index: Integer]: TBoldObject read GetBoldObject write SetBoldObject; default;
  17.   end;
  18.  
  19.   TVehicle = class(TBoldObject)
  20.  
  21.   end;
  22.  
  23.   TVehicleList = class(TBoldObjectList)
  24.   private
  25.     function GetBoldObject(index: Integer): TVehicle;
  26.     procedure SetBoldObject(index: Integer; NewObject: TVehicle);
  27.   public
  28.     procedure Add(BoldObject: TVehicle);
  29.     property BoldObjects[index: Integer]: TVehicle read GetBoldObject write SetBoldObject; default;
  30.   end;
  31.  
  32. implementation
  33.  
  34. { TBoldObjectList }
  35.  
  36. procedure TBoldObjectList.Add(BoldObject: TBoldObject);
  37. begin
  38.  
  39. end;
  40.  
  41. function TBoldObjectList.GetBoldObject(index: Integer): TBoldObject;
  42. begin
  43.  
  44. end;
  45.  
  46. procedure TBoldObjectList.SetBoldObject(index: Integer; NewObject: TBoldObject);
  47. begin
  48.  
  49. end;
  50.  
  51. { TVehicleList }
  52.  
  53. procedure TVehicleList.Add(BoldObject: TVehicle);
  54. begin
  55.  
  56. end;
  57.  
  58. function TVehicleList.GetBoldObject(index: Integer): TVehicle;
  59. begin
  60.  
  61. end;
  62.  
  63. procedure TVehicleList.SetBoldObject(index: Integer; NewObject: TVehicle);
  64. begin
  65.  
  66. end;
  67.  
  68. end.
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement