what is difference between class and object?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about exception propagation?

589


Which java ide is used the most?

510


What is stored procedure. How do you create stored procedure ?

1498


What does indexof mean?

537


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

599






What is the covariant return type?

584


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

615


What does indexof return in java?

540


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

838


how we can make a write-only class in java?

563


How can I become a good programmer?

494


What is the escape character in java?

517


Can a abstract class be defined without any abstract methods?

564


Why generics are used in java?

554


What is instance synchronization?

549