human
Give me a the Python code you requested given the following:
I am working on the file "Classes-en.ipynb".
The first task is:
Private Methods
It is possible to declare as private methods from a class. These methods can not be used outside the definition of the class. And they are the key to enforce encapsulation of logic.
Can you write Python code for it?
assistant
#Here is the Python code you requested.

class Atom():
    electrons = None
    protons = None

    def __init__(self, neutrons=None):
        self.neutrons = neutrons
        self.__atom_private()
    
    @classmethod
    def get_electrons(cls):
        print(cls)
        return cls.electrons
    
    @classmethod
    def get_protons(cls):
        return cls.protons
    
    def get_neutrons(self):
        return self.neutrons
    
    def __atom_private(self):
        print("Atom private method")

class Carbon(Atom):
    electrons = 6
    protons = 6

    def __init__(self, neutrons=6):
        self.neutrons = neutrons
        self.__atom_private()

atom = Atom()
carbon = Carbon()