Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Atom
- {
- public int Protons { get; set; }
- public int Electrons { get; set; }
- public Atom(int protons, int electrons)
- {
- Protons = protons;
- Electrons = electrons;
- }
- }
- public class Hydrogen : Atom
- {
- public Hydrogen() : base("Atom") { }
- }
- public class Program
- {
- public static void Main()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement