Interviewer And Interviewee Guide

Senior .Net Developer Interview Question:

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

Submitted by: Muhammad
In short, a class is the definition of an object, and an object is instance of a class.

We can look at the class as a template of the object: it describes all the properties, methods, states and behaviors that the implementing object will have. As mentioned, an object is an instance of a class, and a class does not become an object until it is instantiated. There can be more instances of objects based on the one class, each with different properties.
Submitted by: Muhammad

Read Online Senior .Net Developer Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.