Jobs keyword-wise

Difference and similarity between a class and a structure

<<Previous Next>> 
VB.NET - Difference and similarity between a class and a structure - Feb 11, 2009 at 23:55 PM by Nishant Kumar

Difference and similarity between a class and a structure in VB.NET.

Both the class and structure are user define types. 
Both are the template of the object. 
Both contain members like methods, properties, fields and use contractor for initialization. 
Both of them inherit from System.Object.

Whereas, 
Classes are reference types whereas structures are value types. 

VB.NET - Define class and structure - March 21, 2009 at 13:25 PM by Nishant Kumar

Define class and structure.

Class and structure are user define types. Both are the template of the object. Both contain members like methods, properties, fields and use contractor for initialization. Both of them inherit from System.Object.
Classes are reference types whereas structures are value types.

<<Previous Next>>  
Explain how managed code slower than unmanaged code.

Managed code not always is slower than unmanaged code. In managed code, the CLR does some optimization for the way loops................

Difference between dataset and datareader.

Dataset
a. Disconnected
b. Can traverse data in any order front, back.
c. Data can be manipulated within the dataset.
d. More expensive than datareader as it stores multiple rows at the same time............

Define reference type and value type.

A value type holds the data assigned to it. A reference type contains the pointer i.e. memory address that holds the data................

Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
 
Home | Want a Job? Submit Key Skills | Employer login | My key skills | About us | Sitemap | Contact us