Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

2. What, according to Sergey, was strange at this meeting?

Answered: 1 week ago