Is class an Object? Is object a class?

Answer Posted / reza

Yes, class is an object but an object is not a class.
We can compare class with a factory and object with product.
A factory can be a product of another factory; but a
product can not be a factory.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is composition? Explain the purpose of composition.

744


Can a class in java be inherited from more than one class?

676


How can we call the base method without creating an instance?

770


Why are virtual users created?

789


Explain what you understand by function overloading.

738


What is the use of destructive method?

705


What is meant by inheritance? what are the advantages of inheritance?

718


What is the @functionalinterface annotation?

691


Can we override a method by using same method name and arguments but different return types?

702


Which OOPS concept is used as a reuse mechanism?

796


Does a class inherit the constructor of its super class?

681


What's the main difference between arraylist / hashmap and vector / hashtable?

739


Why is OOP good?

740


Can different parts of a partial class inherit from different interfaces?

736


Explain about inheritance?

785