Question: I created TestComputer class, Computer, InputComputer and OutputComputer and I want help to complete it and get a information about to full the codes like

Q- Search (Ctrl+1) TestComputer.java X Computer.java x InputComputer.java X Output Computer.java X Headers in Project Properties. Templates Part-2 (Inheritance and Polymorphism) (11 marks) Create a Java project that demonstrates various object oriented concepts you have learned so far in this course inheritance and polymorphism). To do this, create a super class and at least 2 subclasses. The super class will have following properties/functionalities: 1) Create a total of 3 member variables for the class, selecting the appropriate data types for each field. The two subclasses will have below properties/functionalities: 1) One of the subclasses will have at least one-member variable and other subclass with at least two member variables. 2) You should include overloaded methods in any of the classes you have created (superclass or subclass). Override the toString() method in each of your Classes. Override the equals() method in each of your Classes. The test class (with the main () method) will perform below tasks: 1) Create objects of superclass and each subclass types invoking all constructors. 2) Use setter methods to fill missing data in all objects. 3) Generate outputs demonstrating overloading, overriding outputs. 4) Create object of subclass [actual type] and store it in superclass object (declared type]. 5) Generate output for instanceof operator. 6) Generate output for constructor chaining (using this and super keywords]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
