What is the difference between a class and an object, and how do these terms relate to each other?



What is the difference between a class and an object, and how do these terms relate to each other?..

Answer / Rampravesh Srivastava

A "class" is a blueprint or template that defines the structure, behavior, and relationships of objects in Object-Oriented Programming (OOP). An "object", on the other hand, is an instance of a class. You create objects by using the 'new' keyword to invoke the constructor of the class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

what are design patterns in .net....?

2 Answers  


What exactly is being serialized when you perform serialization in .net?

1 Answers  


i m fresher,hav SQL knowledge but in my ofc. i hav to work on dotnet. so plz tell me how to learn it,? from where to stat? i hav C prog. knowledge, ASP.net

1 Answers  


How to implement CAS in .Net?

1 Answers   247Customer,


Garbage collector thread is what kind of a thread?

1 Answers  


what is viewstate?

2 Answers  


why .net does not support multiple inheritance?

2 Answers   Microsoft,


What is Assembly manifest? what all details the assembly manifest will contain.

2 Answers   Ksb,


Which namespace does it belong to by default?

1 Answers  


What's the .net collection class that allows an element to be accessed using a unique key?

1 Answers  


Using activex control in .net?

1 Answers  


What is the difference between a class and an object, and how do these terms relate to each other?

1 Answers  


Categories