Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public class Atom
  2. {
  3. public int Protons { get; set; }
  4.  
  5. public int Electrons { get; set; }
  6.  
  7. public Atom(int protons, int electrons)
  8. {
  9. Protons = protons;
  10. Electrons = electrons;
  11. }
  12.  
  13. }
  14.  
  15. public class Hydrogen : Atom
  16. {
  17. public Hydrogen() : base("Atom") { }
  18. }
  19.  
  20. public class Program
  21. {
  22. public static void Main()
  23. {
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement