Answered step by step
Verified Expert Solution
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 twoletter 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 Atomstring 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started