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
What is composition? Explain the purpose of composition.
Can a class in java be inherited from more than one class?
How can we call the base method without creating an instance?
Why are virtual users created?
Explain what you understand by function overloading.
What is the use of destructive method?
What is meant by inheritance? what are the advantages of inheritance?
What is the @functionalinterface annotation?
Can we override a method by using same method name and arguments but different return types?
Which OOPS concept is used as a reuse mechanism?
Does a class inherit the constructor of its super class?
What's the main difference between arraylist / hashmap and vector / hashtable?
Why is OOP good?
Can different parts of a partial class inherit from different interfaces?
Explain about inheritance?