Question: I created testComputer class, Computer, InputComputer, and outputComputer I want help to complet it and get a information about to full the codes. Part-2 (Inheritance

I created testComputer class, Computer, InputComputer, and outputComputer
I want help to complet it and get a information about to full the codes.  I created testComputer class, Computer, InputComputer, and outputComputer I want help
to complet it and get a information about to full the codes.

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] Q- Search (Ctrl+1) TestComputer.java X Computer.java x InputComputer.java X OutputComputer.java X Headers in Project Properties. Templates

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!