Looks like it does it without the overrrides keyword. Adding on to my example.
Then to invoke it ...VB Code:
using System; namespace Test_CS { public class User { public User() { // // TODO: Add constructor logic here // } public string Msg() { return "Woof"; } public string Msg(string str) { return str; } } }
VB Code:
private void Form1_Load(object sender, System.EventArgs e) { User MyObj = new User(); ///System.Console.WriteLine(MyObj.Msg()); MessageBox.Show(MyObj.Msg("Ruff!")); ///Ruff! MessageBox.Show(MyObj.Msg()); ///Woof! }





Reply With Quote