473,472 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

About constructors & Destructors

Hi All !

I want to know about the constructors & Destructors,

constructors ---> New
Destructors --> What ? (Which keyword to use for Destructor)

Thanks & Regards,
ElanKathir.S.N,
ASM Technologies,
B'lore.

Nov 20 '05 #1
5 1461
Ot
dim athing = new thing

.... use athing as you will...

athing = nothing ' it goes away

Is that what you meant?

"ElanKathir" <sn**********@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi All !

I want to know about the constructors & Destructors,

constructors ---> New
Destructors --> What ? (Which keyword to use for Destructor)

Thanks & Regards,
ElanKathir.S.N,
ASM Technologies,
B'lore.
Nov 20 '05 #2
ElanKathir wrote:
Hi All !

I want to know about the *constructors & Destructors,*

*constructors ---> New *
*Destructors --> What ? *(Which keyword to use for Destructor)

Thanks & Regards,
ElanKathir.S.N,
ASM Technologies,
B'lore.


I may be wrong, but I don't think VB.NET has any destructors. The
garbage collector does the job automatically.

Snuyt

Nov 20 '05 #3
* "Ot" <ur***@tds.invalid (use net)> scripsit:
athing = nothing** ' it goes away


This will only set a reference to 'Nothing', but the object previously
pointed to by 'athing' will be destroyed some times later by the GC.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
* "ElanKathir" <sn**********@hotmail.com> scripsit:
I want to know about the constructors & Destructors,

constructors ---> New

Destructors --> What ? (Which keyword to use for Destructor)


There is no deterministic desctruction in .NET. There are only
finalizers and the 'IDisposable' interface, you can implement.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
"ElanKathir" <sn**********@hotmail.com> schrieb

I want to know about the constructors & Destructors,

constructors ---> New
Destructors --> What ? (Which keyword to use for Destructor)


http://msdn.microsoft.com/library/en...collection.asp

http://msdn.microsoft.com/library/en...management.asp
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rajesh Garg | last post by:
Can we have private constructors and destructors? IF yes what is the use of such constructors or destructors.....in the sense where can these be implemented in a system................. I have...
4
by: François Duranleau | last post by:
Hi! I was writing some piece of code and then, after pondering on some readings in "More Effective C++" by Scott Meyers (Item 10) and the book of Stroustrup (section 14.4.1 in the hardcover...
3
by: Amit | last post by:
is there anything like static constructors or destructors in C++ ? if yes, how to implement it? Thanks, Amit.
3
by: rahul8143 | last post by:
hello, I write a following program and have problem in understanding constructors and destructors. #include <iostream.h> class vector { public: double x; double y;
5
by: Alok | last post by:
hii Would somebody clear my doubts on following qustions . What are virtual constructors and virtual destructors ? Why can't we have virtual constructors ? What are demerits of inheritence in...
53
by: jaso | last post by:
Can you give any comments on this code? I used one goto, is it bad? #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <assert.h> #define NOT_NULL 1
21
by: Michael Hull | last post by:
Hi, I remember from somewhere reading that inlining constructors is a 'BadThing', but now can't seem to find the original source. I can't however thing of a reason why it would be for simple...
17
by: Jess | last post by:
Hello, If I have a class that has virtual but non-pure declarations, like class A{ virtual void f(); }; Then is A still an abstract class? Do I have to have "virtual void f() = 0;"...
10
by: JosephLee | last post by:
In Inside C++ object Model, Lippman said there are four cases in which compile will sythesize a default constructor to initialize the member variables if the constructor is absent: 1. there is a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.