answersLogoWhite

0


Best Answer

An object is an instance of a class. A class is the broad definition of something, and an object is one particular one of those. In the real world Dog is a class. A particular individual dog is an object. The class defines what a dog is, what characteristics it has, what it can do etc.

In computing you could have a bank account class, defining characteristics and things that you can do with it. It could define that a bank account has an account number, the owner of the account, a balance, a facility to lodge money, a facility to with draw money etc. That is the case for any bank account. Your bank account is an object, an instance of that class. Your account isn't my account, but both of our accounts are objects and have the characteristics as defined by the bank account class.

User Avatar

Wiki User

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

Wiki User

12y ago

CLASSES :

A class is collection of object of similar type of objects. classes are user defined data types behave like the build in types of a programing language.

The objects are variable of type class .

OBJECTS :

Objects are basic run time entites. in object oriented system. They may represent a place. a bank account, a table of data, or any item that the program must handle.They may represent user defined data such as timd, limit.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

"Class" appiles to a "type" or "model" of a GROUP of items, objects, or concepts.

"Object" applies to a specific material item or concept, a group of which may comprise a "class".

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

"An object is an instance of a class," is the typical college distinction between the two.

// In this example, String is the class and s is the object.

String s = "";

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

In Java class can be thought of as a specification of a type, while an object is an 'instance'. You usually get an object instance via the 'new' operator.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

A class is a data structure that contains all of the necessary data and functions necessary to describe a real-world thing. An object is an instance of a class.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Relationship between a class to an object?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What difference between package class and object?

A package is a grouping of similar classes. A class is a blue print for making an object. An object is, well, an object.


What is containment in oop?

When an object in created within another object, the relationship between them is containment.


What is the difference between a class method and object in object-oriented C?

Class methods are the member functions that act upon member variables. An object is an instance of a class. C does not support object-oriented programming, but C++ does.


What is difference between classes and objects?

Posted by : Govind Singh Lodhithese are the following differences between java class and object.1. Class is a way of bind data member and method in single unit where as a object is a value form of a class or a instance of a class that means allocating sufficient amount of memory space.2. When we define a class ,there is no memory space allocated for data member of a class where as when we create a object of a class memory space is allocated for data members of a class.3.Class will have exist logically where as object will have exist physically.4.One class can have only one name where as corresponding one class we can create multiple object.5.Class load in main memory by using class loader subsystem where as after load class we can create multiple objects of a class.


What is the Object class parent?

Object is the topmost class in the Java Class hierarchy. There is no Class above Object. All classes in Java are implicitly derived from Object.

Related questions

Which object-oriented concept defines the relationship between a subclass and a super class?

Inheritance


What is the relationship between mass of an object and thr amount of water that the object displaces?

No relationship at all. But there is a definite and direct relationship between theamount of water than an object displaces and the object's volume.


What is the relationship between logic and language?

whatisthe relation ship between logic and language


What difference between package class and object?

A package is a grouping of similar classes. A class is a blue print for making an object. An object is, well, an object.


What is the relationship between stock control department and stores department?

[object Object]


What is the relationship between force and movement?

When forces are unbalanced on an object, the object will move.


The relationship between a thing or object and its meaning is?

The relationship between a thing or objects and its meanings is a system of meanings.


What type of pronoun show a relationship in location between the speaker and the object?

A demonstrative pronoun shows a relationship in location between the speaker and the object. Examples include "this," "that," "these," and "those."


What is the relationship of Front Office Department and Security Department?

relationship between the front office and the security office


What is the relationship between the distance of the object and the screen?

my sinep


What is the relationship between the speaker of the poem and the person who kills the Jabberwock?

What is the relationship between the speaker of the poem and the person who kills the Jabberwock?


Can a direct object show relationship between it's object and some other word in a sentence?

yes, it can show a relationship to a noun.