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
What is difference between filereader and bufferedreader?
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?
What is double checked locking in singleton?
What are the types of web technologies?
what are Hostile Applets?
For class CFoo { }; what default methods will the compiler generate for you>?
Why do we use predicate in java?
What is use of super keyword in java?
List the three steps for creating an object for a class?
What is bubble sorting in java?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
How do you override a private method in java?
Why singleton pattern is better than creating singleton class with static instance?
Why isn’t there operator overloading?
Is int primitive data type?