In c#, for creating constructor for class, we simply use the class name as the method/function.
Example:
Class test
{
Public Void test (String k)
{ codes}
}
In case of C# for creating an overload for Form, we do it the same way.
However in case of VB, this defers. We create a method/function or Form overload with the name as “New”
Example:
Class test
{
Public Void New(K as String)
{ codes}
}
I hope it is simple to understand.
No comments:
Post a Comment