Question: ASSIGNMENT NO. HOW TO SUBMIT? 1. Submit these pages with the assignment. 2. The solved assignment submitted MUST be stapled with ONE staple on left
ASSIGNMENT NO. HOW TO SUBMIT? 1. Submit these pages with the assignment. 2. The solved assignment submitted MUST be stapled with ONE staple on left upper cormer and use A4 size paper . Write programs using IDE, compile, run and take the screen shot of the output and submit. 4. The submitted programs . Use the good programming practices; this will have marks. MUST be handwritten STUDENTS MAY BE ASKED TO EXPLAIN THE PROGRAMS NO LATE ASSIGNMENTS OBEJCTIVE Apply the concept of polymorphism/inheritance to write develop applications which are scalable and permit class/object re-usability REFERENCE MATERIAL Textbook, Lecture Notes, Internet Marks 05 (CLO 2) KNOWLEDGE CHECK I. Which of the follewing statements is false a. A subclass is often larger than its superclass b.A superclass object is a subclass object e. The class following the extends keyword in a class declaration is the direct superclass of the class being declared d. Java uses interfaces to provide the benefits of multiple inberitance 2. inheritance is also known as the a. "knows-a" relationship. b. "has-a" relationship C. "uses-a relationship d "is-a" relationship An advantage of inheritance is that a. All methods can be inherited b. All instance variables can be uniformly accessed by sublasses and superclasses c. Objects of a subclass can be treated like objects of their superclass d. None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
