Visual Basic .NET/Class7 how to use overrides Keyword This time, I'll show how to use override keyword. Generally, to override a base-class function or subroutine, a derived class must place the Overrides keyword within the method definition to tell the Visual Basic .NET compiler that its goal is to replace the base-class method implementation with its own, as shown here Public Overrides Function ToString() As String ToString = Name End Function so.. 2008. 6. 26. A destructor method in a class A destructor method in a class Within a class, a destructor method lets the class perform “cleanup” processing before the garbage collector(GC) releases the memory that holds an object. I explained GC through last lecture. Let’s refer to last lecture http://fromyou.tistory.com/entry/memory-management-In-the-NET-environment Well, To specify the processing you want a program to perform before an o.. 2008. 6. 26. using MyBase Hello, everyone. nice day, isn't it? This time , I'll explain how to use MyBase Class. MyBase Provides a way to refer to the base class of the current class instance. MyBase.New is used to explicitly call a base class constructor from a derived class constructor. In the derived-class constructor, the call to the base-class constructor must be the first statement. Otherwise, Visual Basic .NET wil.. 2008. 6. 25. understand the inherited constructors of class Visual Basic .NET automatically will call the Base-class constructor method when the Derived-class constructor method starts. The following program, ThreeConstructors creates three classes named GrandParents, Parents, and Children. Class Parents inherits Class GrandParents, and Class Childern inherits Class Parents When you run the program, your screen will first display class GrandParents’const.. 2008. 6. 25. 이전 1 2 다음