I'm new to C#. I searched the web with no success on finding an answer to my question, maybe it's only a term/syntax which I'm missing out.
I'm learning some program which somebody else wrote. The program includes some classes in different files which are included with the project.
at the main program file instead of the way I know for declaring a new instance of these classes this method is used:
namespace Technology_A3000_A4_A42107
{
public partial class FormTechnology : Form
{
...
private AST_NET _device;
private ClassTechnology _technology;
private ClassGain _gain;
....
}
public FormTechnology()
{
...
_device = new AST_NET();
_technology = new ClassTechnology(_device);
_gain = new ClassGain();
....
}
....
What exactly is done here? is this equivalent to writing the row below, or is it needed due to some external file or some other property of the classes?
private AST_NET _device = new AST_NET();
Thanks in advance and sorry if this is not an appropriate question. Amitai