what is difference between class and object?

Answer Posted / muthusenthil

Class is a template(type) or blue print its state how
objects should be and behave. eg consider a construction
plan which is a class with this description mentioned in a
plan we can constructs 'n' number of buildings of same type.
these buildings are consider to be an objects come under
same type of that plan.
Object is defined as a software construct which binds data
and logic or methods(functions)together.

Is This Answer Correct ?    230 Yes 47 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between filereader and bufferedreader?

537


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

1840


What is double checked locking in singleton?

611


What are the types of web technologies?

530


what are Hostile Applets?

1606






For class CFoo { }; what default methods will the compiler generate for you>?

621


Why do we use predicate in java?

559


What is use of super keyword in java?

600


List the three steps for creating an object for a class?

517


What is bubble sorting in java?

595


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

563


How do you override a private method in java?

508


Why singleton pattern is better than creating singleton class with static instance?

539


Why isn’t there operator overloading?

598


Is int primitive data type?

507