Create Array Parameters in C#
// November 14th, 2009 // 6 Comments » // Programming
Today i have request from ‘bad friend’ code name ‘mashudi’ to create Nearest Neighbor Class, Artificial Intelegent system that can compute distance from one to other node.
From this project I will share how to create a constructor or maybe you need for method that use array parameters.
Design of implementation in KNN node class will be like this :
KNNNode node1 = new KNNNode("Rose", 2.5, 4, 4.2);
KNNNode node2 = new KNNNode("Height", 2.5, 4, 4.2, 4.5, 6.3);
So you can add more parameters to that class.



