Object-Oriented Programming (OOP)
Method is a member of a class that can be called to perform a specific task.
You can call the method when you create the object of the class. You can read this page VB.NET_OOP_Create_Objects.htm to learn how to call the method. A method can accept parameters so that values can be passed to the method. You can write parameters for method as you did with the sub-procedure and function. If you don't know how to write parameters for a sub-procedure or function, please read this page VB.NET_Sub-Procedure_Function_Parameters.htm
stnumber = CInt(Console.ReadLine)
number is:" & stnumber)