Property is just a setter/getter function. You could and could not create your own property. Sample to this functions are the ones in Java. Something that looks like this1)Is it a must to create both the property and methods in the
classes....if i does not uses property often....
can i just declare it inside the form and put all methods
separately to the classes...
Code:function getSomething() varialbe_type return variable end function sub setSomething(something) me.variable=something end subClass is not a function but a structure with a twist. A structure that has function and variables inside it. What's good about classes is the oop feature that can extend it's capability to another class. The one we know about inheritance.2)Can i say that class is somehow act like the function procedure
as it can return the values except that it could be shared to all
forms if i put it in classes....
There is no multiple inheritance in .NET aside from C++. Dunno about any languages if they support multiple inheritance. You can do multiple inheritance by creating an interface and implements it on your class. Something like this3) Lastly, how to declare one or multiple classes that i need to
the various forms... I am not sure where the Inherits
should be place... is it
coding:
VB Code:
Public Class Sample Inherits System.Windows.Forms.Form Inherits Class1, Class2
Thanks
From there, your class Sample have the feature from Class1 and the functionality of your interface.Code:public class Sample inherits Class1 implements Interface1 . . . end class public Class1 . . . enc class public interface Interface1 Sub DoThis() Function DoThis2() as variable_type enc interface
Dunno if this helps.




Reply With Quote