what does the : e(data) do in the following code? Why are the curly brackets { } empty in the folowing code? Also can constant members of a class be initialized in this way?
Is this kind of definition specific to a constructor or it can be applied to all functions in C++?
class binaryfile
{
    private:
        const entry &e;
    public:
        binaryfile(const entry &data) : e(data){}
        ostream& write(ostream &o)
        {
            o<<e.b_write();
        }
}
 
    