what is difference between class and object?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the components that are termed to be Heavy-weight component but available in Light-weight components?

1987


How to print nodes of a Binary tree?

1754


Is map ordered in java?

537


How strings are created in java?

568


Define linked list and its features with signature?

541






How many bits is a string?

525


Can an integer be a string?

513


What is the final access modifier in java?

617


What are different types of arrays?

532


What is slash r?

543


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

561


What's the access scope of protected access specifier?

533


What is the major advantage of external iteration over internal iteration?

613


what is the purpose of using rmisecuritymanager in rmi?

566


What is boolean law?

518