Please explain what is the difference between a class and an object?



Please explain what is the difference between a class and an object?..

Answer / Yogesh Kumar Kardam

A class is a blueprint for creating objects. It defines a set of properties and methods that specify the behavior of the objects created from it. An object, on the other hand, is an instance of a class - a specific member with its own state and identity, created when memory is allocated according to the class's blueprint.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is .net environment?

1 Answers  


Explain the features that are common to all .Net languages.

1 Answers   Accenture,


Difference between dispose and finallize method?

1 Answers  


What is Atomicity?

3 Answers   Verifone,


Please explain what garbage collection is and how it works. Provide a code example of how you can enforce garbage collection in .net?

1 Answers  


Which ports are used by virueses?

1 Answers  


What is the Difference between a sub and a function?

9 Answers   Wipro,


Explain what relationship is between a process, application domain, and application?

1 Answers  


What is boxing and un-boxing in .net?

1 Answers  


Explain what is an application domain?

1 Answers  


What is static constructor, when it will be fired? And what is its use?

1 Answers  


Explain can the validation be done in the server side? Or this can be done only in the client side?

1 Answers  


Categories