what is difference between class and object?

Answer Posted / annie

Object is a real world entity.It can be similar to any single real thing of this world regardless of living and non-living thing,e.g.,a parrot or a room.
When objects that share similar features like behaviour,characteristics..etc. when grouped together can be termed as a class, e.g.,parrot can be an object of class bird, and room can be a object of class building.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you read and print a string in java?

523


Can you instantiate the math class?

601


Why we used vector class?

631


How big is a pointer?

555


What is mvc in java?

558






What is a nested list?

522


Write a program to check for a prime number in java?

559


What is variable and constant explain with example?

532


What is a boolean field?

526


How do you ensure that n threads can access n resources without deadlock?

811


Is the milky way in a void?

540


Does anyone still use java?

582


Explain the importance of import keyword in java?

524


What are the fileinputstream and fileoutputstream?

569


What are wrapper classes in java?

600