Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description of class members Fields: There are no fields in this class. Properties: All the properties have public get and set Name this is a

Description of class members
Fields:
There are no fields in this class.
Properties:
All the properties have public get and set
Name this is a string representing the name of this atom. Both the getter and setter are public.
Symbol this is a two-letter string representing the name of this atom that is used in chemistry. Both
the getter and setter are public.
Proton this is an int representing the number of protons in the nucleus of this atom. Both the getter
and setter are public.
Neutron this is a int representing the number of neutrons in the nucleus of this atom. Both the getter
and setter are public.
Weight this is a double representing the atomic weight of this atom. Both the getter and setter are
public.
Constructor:
There are two constructors for this class: a default one and a user defined one
public Atom() This is a default constructor that is necessary for serialization. This is an empty
constructor that does not do anything.
public Atom(string name, int proton, int neutron, double weight, string
symbol) This constructor assigns the arguments to the appropriate fields.

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

=+How might these stem from country and regional cultures?

Answered: 1 week ago