what is class and object explain with example?

Answer Posted / karthik

Classes and objects are separate but related concepts.
Every object belongs to a class and every class contains
one or more related objects. A Class is static. The
attributes of a class don't change. An Object on the other
hand has a limited lifespan. Objects are created and
eventually destroyed. Also during that lifetime, the
attributes of the object may undergo significant change. A
class is a general concept while objects are the specific
and real instances that embody that concept

Is This Answer Correct ?    46 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain domestic architecture artifacts? : Dot net architecture

692


What do you know about machine.config file ?

725


what are constructors and destructors?

1895


How do I know when my thread pool work item has completed?

681


Do you know textbox and textview controls of .net mobile? : Microsoft dot net mobile

712


Explain about validation?

783


Explain Singleton design pattern in .net

745


how to delete the record using data reader

2068


What is different about namespace declaration when comparing that to package declaration in java?

727


Explain hard disk and what is its purpose? : .NET Architecture

674


how to make and display a form without title bar?

1649


I can't be bothered with cas. Can I turn it off?

699


Explain dotnet framework ?

695


Explain .net mobile input controls? : Microsoft dot net mobile

666


Define cache coherency and how is it eliminated? : Dot net architecture

698