Question: JAVA Part 1: Develop an abstract class Periodic.java to hold information about elements of the periodic table. The class should have the variables: symbol, atomicNumber,

JAVA

Part 1: Develop an abstract class Periodic.java to hold information about elements of the periodic table. The class should have the variables: symbol, atomicNumber, and atomicWeight. The class should have a default constructor and a constructor that accepts arguments for all three variables. In addition the class should have the appropriate getters, setters, toString, and equals methods and an abstract method describeElement.

Part 2: Develop two classes (PeriodicMetal.java and PeriodicNonMetal.java) which extend Periodic.java and include the method describeElement (the method should print a brief explanation of the element i.e. metals are good conductors, non-metals are not good conductors).

Part 3: Develop a class PeriodArray.java which creates array which holds at least 3 instances of each type and iterates over the array calling the toString and describeElement methods of each instance.

Submit all 4 files.

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!