Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is difference between class and object?

Answers were Sorted based on User's Feedback



what is difference between class and object?..

Answer / unknown

class is defined as a collection of objects.
object is defined as instance of class and it isa real time
entity or a thing.

Is This Answer Correct ?    2 Yes 0 No

what is difference between class and object?..

Answer / renjith

The terms ‘class’ and ‘object’ are absolutely related to one another, but each term holds its own distinct meaning.
The term ‘class’ refers to the actual written piece of code in which the class is defined. The properties of a class
do not change before, during, or after the execution of a program.
The term ‘object’, however refers to an actual instance of a class. Every object must
belong to a class. Objects are created and eventually destroyed – so they only live in the program for a limited time. While objects are ‘living’ their properties may also be changed signficantly.

Is This Answer Correct ?    2 Yes 0 No

what is difference between class and object?..

Answer / shingala ankit

The class is a main entity in which all the data members and member functions are defined and objects is one by which we can access these data members and member function in order to achieve a task.

each class can have one or more objects of its own but each and every objects can have only one and only one class.

Is This Answer Correct ?    2 Yes 1 No

what is difference between class and object?..

Answer / sobi

class do not hold any information whereas object does.

Is This Answer Correct ?    1 Yes 0 No

what is difference between class and object?..

Answer / kiran

Class

Class is Logical representation .....

Object

Object is Physical representation......

Is This Answer Correct ?    1 Yes 0 No

what is difference between class and object?..

Answer / ayisha shoukat

CLASS:
A class is a collction od data members and member
functions.in class data members are private usually
and member functions are private.
And
A class is also like a data type therefore it is used to
declare variabes in oop.


OBJECT:
The variables of a class are objects.

Is This Answer Correct ?    1 Yes 0 No

what is difference between class and object?..

Answer / akhandam revathi

CLASSES- A class is a collection of objects of similar
type. Ex:mango,apple and orange are members of the class
fruit.


OBJECTS- An object is an abstract representation of a real
world entity that has a unique identity,embedded properties
and the ability to interact with each other.

Is This Answer Correct ?    1 Yes 0 No

what is difference between class and object?..

Answer / patel hemangi baldevbhai

class is collection of object.
ex:
|ob1|ob2|ob3|

object is collection of data member & member function.
ex:
| data | member |
| member | function |

Is This Answer Correct ?    1 Yes 0 No

what is difference between class and object?..

Answer / priyanka singh

class is a combination of similar type of objects. ex animal but object is the real time entity which has some uniqness. ex dog

Is This Answer Correct ?    0 Yes 0 No

what is difference between class and object?..

Answer / deepak maurya

object is an instance of a class.
class is a collection of object.

object do not contain sub parts.
class do contain sub part ie; sub-class

object do contain some information.
class do not contain some information

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How to set the Heap size in Java ?

2 Answers   HCL,


Can we use static class instead of singleton?

0 Answers  


Why there is no call by reference in java?

0 Answers  


if num=687; U have to get num=6+8+7;

4 Answers   CMC,


How to perform Singleton of the java class object on multi JVM?

2 Answers  


What is java and its types?

0 Answers  


whays is mean by inner class?

4 Answers   HCL, IBM, TCS,


Why java does not support pointers?

0 Answers  


What is difference between path and classpath in java?

0 Answers  


What are white spaces in java?

0 Answers  


Give any two differences between C++ and java.

0 Answers   GrapeCity,


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

0 Answers   MCN Solutions,


Categories