Explanation:
A class is called an object factory because objects are created from a class. An object is an instance of a class.
Answer:
c.a system that start with a process, them output resources in the input
Answer:
I'm not going to answer it just because you said "ASAP" never rush an intellectual such as ME.
Answer:
a) public class Bear extends Animal{
...
}
public class Zoo
{ private Animal[] myAnimals;
...
}
Explanation:
The question is an illustration of inheritance in Java programming language.
The syntax to follow is:
class subclass extends superclass {...}
From the question:
Bear subclass
Animal superclass
So, the following declaration will be used:
class Bear extends Animal{
...
}
Also from the question, the zoo object represents collection of many animals.
So, its declaration will follow:
class class-name{ ..... }
i.e.
class zoo{ .... }
The ... can then be replaced with declaration of each animal or an array to represent the declarations..
<em>Hence, (e) is correct</em>