본문 바로가기

클래스10

how to delete, move directory Today, we learn how to delete a directory and move. when your program must delete a directory and the files the directory contains. In such cases, you just use the Directory class Delete method. To delete a directory and, optionally, the files and subdirectories the directory contains, invoke the Delete method with the directory name and the value True like Directory.Delete("DirectoryName", True.. 2008. 6. 30.
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.
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.