I am a little confused by the object model of Python. I have two classes, one inherits from the other.
class Node():
def __init__(identifier):
self.identifier = identifier
class Atom(Node):
def __init__(symbol)
self.symbol = symbol
What I am trying to do is not to override the __init__() method, but to create an instance of atom that will have attributes symbol and identifier.
Like this:
Atom("Fe", 1) # will create an atom with symbol "Fe" and identifier "1"
Thus I want to be able to access Atom.identifier and Atom.symbol once an instance of Atom is created.
How can I do that?