Question: In java 4. A method in a subclass has the same name as a method in the superclass but a different signature is an example
4. A method in a subclass has the same name as a method in the superclass but a different signature is an example of: A. aggregation B. overriding C. overloading D. multiple inheritance 5. Which of the following is not true about abstract classes: A. Must have some abstract methods B. Cannot have constructors, but can be instantiated using the default constructor C. All abstract classes are subclasses of the class Object D. Can neither have constructors nor be instantiated 6. Suppose ClassB extends ClassA. Which of the following is correct? A. ClassB inherits from ClassA but does not from the class Super B. ClassA must declare a no-argument constructor. C. Both ClassB and ClassA inherit from the class Super D. ClassB can overload methods inherited from ClassA 7. The following is part of a class model. Which of the statements below is indicated by this model. 0..1 Bank accountNumber Account A. B. C. D. Account is a subclass of Bank Class accountNumber is a subclass of Account the objects from the classes AccountNumber and Account have a one-to-one association. accountNumber maps Bank objects to Account objects 8. In order to analyze a problem domain to identify the methods in the classes, we should: A. start with the nouns and noun phrases in the domain description B. start with the verbs and verb phrases in the domain description. C. start with the associations between the classes D. start with the outputs of the system
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
