class DocSavings
% file: @DocSavings/DocSavings.m
    isa DocAsset
    
    properties
        InterestRate@double = 0;  
        
    methods
        function s = DocSavings(description,balance,interest_rate)
            construct s using DocAsset(description,'savings',balance);
            s.InterestRate = interest_rate;
        end % DocSavings
        
        function disp(s)
            DocAsset@disp(s) 
            fprintf('Interest Rate: %3.2f%%\n',s.InterestRate);
        end % disp
end % class
