Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an abstract class name element that holds properties of elements, including their symbols, atomic number, and atomic weight. Include a construct or that requires

Create an abstract class name element that holds properties of elements, including their symbols, atomic number, and atomic weight. Include a construct or that requires values for all three properties and get methods for each value. (For example, the symbol for carbon is see, is atomic number is six and is atomic weight is 1201. You can find these values by reading a periodic table in a chemistry reference or by searching the web). Also include an abstract method name describe element(). Create two extended classes name metal element and nine MetalElement. Each contains and described Element() methods that display the detail of the element and a brief explanation of the properties of the element type. For example, metals are good conductors of electricity, while nonmetals are poor conductors. Write an application name ElementArray that creates and display an array that holes at least two elements of each type. Save files as Element.java, MetalElement.java, NonMetalElement.java and ElementArray.java

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

More Books

Students also viewed these Databases questions

Question

Analyse the various techniques of training and learning.

Answered: 1 week ago