What are constructors and destructors?



What are constructors and destructors?..

Answer / rupali

constructor is a special method which is called when class is instantiated. this method is used to assign values to the
members of a class. constructor has same name as class.
Destructor is opposite to constructor & has same name of
class. this method is called when object of a class is
destroyed.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Visual Basic Interview Questions

How would you create properties in ActiveX Control?

0 Answers  


Which method is preferred to save data like database to the disk?

0 Answers  


How do I get my application on top?

0 Answers  


Which controls have refresh method?

2 Answers  


How do you change the system menu (on the Control-Menu Box)?

0 Answers  


How do you clear the current selected item from a drop down combo box?

2 Answers  


What is the use of debug Window?

1 Answers  


CONNECTIVITY OF SQL 2000 + VB USING ODBC. steps i Follow- 1) Go to Control panel-->Admintrative Tools-->Double -click Data sources(ODBC)-->click Add button-->I choose SQL server (last option), Is it right or wrong option for connecting to SQL 2000.Then a new screen appears Create a New dataSource-->in name textbox,we can write anyname--Right or wrong. suppose i enter sonia, & my server name is .,so I enter . in server & click next button-->On the Next screen i have checked the option With Sql server authentication-- >Login Id-sa, Password-->Blank-->Click next button-->Next-- >Finish-->Then I click on button Test Data source-->Mesage Comes TESTS COMPLETED SUCCESSFULLY-->OK-->OK-->Ok. These steps we have to do or not for Connectivity using ODBC. If yes,then what after these steps we have to do??Plz reply me early ??Thx in advance.

6 Answers  


What are the types of validations available in Visual Basic?

2 Answers   Infosys, TCS,


How do I implement Undo?

0 Answers  


What is the use of OLE?

0 Answers   IBM,


Does VB support object-oriented concepts? Explain..

3 Answers  


Categories