Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - //banco
 - #include <iostream>
 - using namespace std;
 - class credito{
 - private:
 - char* titular;
 - double saldo;
 - public:
 - credito(char*);
 - ~credito();
 - void deposito(double);
 - void retiro(double);
 - void show();
 - };
 - class nomina{
 - private:
 - char* titular;
 - double saldo;
 - public:
 - nomina(char*);
 - ~nomina();
 - void deposito(double);
 - void retiro(double);
 - void show();
 - };
 - class ahorro{
 - private:
 - char* titular;
 - double saldo;
 - public:
 - ahorro(char*);
 - ~ahorro();
 - void deposito(double);
 - void retiro(double);
 - void show();
 - };
 - // Constructores
 - credito :: credito(char*titular)
 - {
 - this->titular=titular;
 - saldo=1000.0;
 - }
 - nomina :: nomina(char*titular)
 - {
 - this->titular=titular;
 - saldo=1000.0;
 - }
 - ahorro :: ahorro(char*titular)
 - {
 - this->titular=titular;
 - saldo=1000.0;
 - }
 - //
 - int main ()
 - {
 - }
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment