Class
-
How do class work? a simple question for you maybe but its hard for me to understand... pls i need ur help
nothing is impossible.....
-
How do class work? a simple question for you maybe but its hard for me to understand... pls i need ur help
nothing is impossible.....
I have no idea what you're asking. How do you mean ? A class represents a unit of operation. Once you have a class, you can create an instance of that class ( or as many as you like ), and use it's methods to perform the operations that class defines, access it's properties to get access to the data that class contains, etc. If that doesn't help, then you need to ask a more specific question. From what angle are you asking ? Have you done any coding yet ?
Christian Graus - C++ MVP
-
I have no idea what you're asking. How do you mean ? A class represents a unit of operation. Once you have a class, you can create an instance of that class ( or as many as you like ), and use it's methods to perform the operations that class defines, access it's properties to get access to the data that class contains, etc. If that doesn't help, then you need to ask a more specific question. From what angle are you asking ? Have you done any coding yet ?
Christian Graus - C++ MVP
i already made one class but on how to use it from the other form i dont know.... my simple class is just to get the sum of two integers. will you help a simple mind like me to understand how to use class?
nothing is impossible.....
-
i already made one class but on how to use it from the other form i dont know.... my simple class is just to get the sum of two integers. will you help a simple mind like me to understand how to use class?
nothing is impossible.....
I guess the important question is - what resources do you have that you will be able to proceed once I tell you ? Sounds like you need to buy a book and work through it. If your class is called wotsit, then you do this: Dim w as wotsit = new wotsit() ( because VB syntax is nasty. You can call it whatever you like ) w.CallAnyMethodHere
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
I guess the important question is - what resources do you have that you will be able to proceed once I tell you ? Sounds like you need to buy a book and work through it. If your class is called wotsit, then you do this: Dim w as wotsit = new wotsit() ( because VB syntax is nasty. You can call it whatever you like ) w.CallAnyMethodHere
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
i really appreciate your quick response... even though it sound really 'dumb' question, but you really do me a very big favor... thanks, i used your syntax and it really work.. :-D
nothing is impossible.....