answersLogoWhite

0


Best Answer

Class

Defines the abstract characteristics of a thing (object), including the thing's characteristics (its attributes, fields or properties) and the thing's behaviors (the things it can do, or methods, operations or features). One might say that a class is a blueprint or factory that describes the nature of something. For example, the class Dog would consist of traits shared by all dogs, such as breed and fur color (characteristics), and the ability to bark and sit (behaviors). Classes provide modularity and structure in an object-oriented computer program. A class should typically be recognizable to a non-programmer familiar with the problem domain, meaning that the characteristics of the class should make sense in context. Also, the code for a class should be relatively self-contained (generally using encapsulation). Collectively, the properties and methods defined by a class are called members.

Object

A pattern (exemplar) of a class. The class of Dog defines all possible dogs by listing the characteristics and behaviors they can have; the object Lassie is one particular dog, with particular versions of the characteristics. A Dog has fur; Lassie has brown-and-white fur.
A class is the type definition of an object. An object is an actual instance of a class type.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

An object is an instance of a class

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between classes and objects?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is difference between links and association?

links are associated with objects and associations are associated with classes.


What is Difference between C structers and classes?

through classes we can create objects and we can implemented businessmathods. in case of structres we can create streuctre variables but not methods this is the major difference


Difference between links and association in object orinted analysis and design?

link is related to objects whereas association is related to classes


What's the difference between Classes 375 377 and 379?

The difference between the Classes 375 377 and 379 is the services that are provided to the customer.


What is the difference between classes of IP addresses?

difference between ip address and class


What is the difference between a whole number a?

A question about "the difference between" requires two objects!


What's the difference between the British Rail Classes 313 315 and 317?

The difference between the British Rail Classes 313,314 and 317 is the different locations in which they are used.


What is the most significant difference between the holdovers and animals in all other classes?

what's the most significant difference between the holdovers" and animals in all other classes. what's the answer.


What is the energy transferred between objects because of a difference in temperature?

The energy transferred between objects due to a difference in temperature is called heat. Heat flows from objects at higher temperatures to objects at lower temperatures until thermal equilibrium is reached.


Determined by the distance between objects and the difference in mass between the objects?

The gravitational force between objects is determined by their masses and the distance between them. The force increases with the mass of the objects and decreases with the distance between them.


What are 2 difference between Pluto?

You need two objects between which you can have differences!


What does Difference Between discuss on their website?

The website Difference Between discusses on their website a number of different terms and objects. Site visitors can find various information regarding differences between objects and terms.