Useing two classed in the same program

Hi i was looking for example code to test two different objects , example like the FEZ_Touch and FEZ_Temperature_Sensor. Do you make two different classes and how dose the main program work.

Thanks for your time.

Take a look at this guide:

There is a section “C# Level2” that talks about classes.

So in FEZ components i want use both temp and touch. i should make the them to non static classes. I was trying to use both but i think it was having problems with instance variables and both be reference by GHI electronics.

They can be static. You can even have multiple classes in one file.

Here is a good free ebook on C#