I’m try to better understand how to use Inheritance and overloading so I created a number of sensor classes that are all related to one super class. In each of the sensor classes is one method with the same name that calculates its temperature value. In a push button I created an array of these sensors so the code looks like this:
Var Sensors() As TempSensors
For Each S As TempSensors In Sensors
ListBox1.AddRow(Str((???))) // first column
ListBox1.CellValueAt(Listbox1.LastAddedRowIndex, 1) = Str(S.Sensor) // second column
Is there a reference or way to populate the first column (???) of the listbox or later a dictionary with the name of the sensor?