what is difference between class and object?

Answer Posted / tamanna yesmin(jagannath unive

Objects contain data and code to manipulate that data where
the entire set of data and code of an object can be made a
user defined data type using the concept of a Class.


A class
may be thought of as a"data type" and an object as
a"variable"of that data type

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is map sorted in java?

566


What is the purpose of the system class in java programming?

545


What is the difference between static (class) method and instance method?

572


What is diamond operator in java?

500


What is oop in java?

526






What is a nested class?

594


Is minecraft 1.15 out?

545


What are different exception types exceptions available in java ?

475


What are checked exceptions?

579


What is byte [] in java?

535


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

853


Why java is secure? Explain.

596


Can we sort set in java?

542


What is a instance variable?

583


What are the steps that are followed when two computers connect through tcp?

519