Advertisement
diegoaguilar

banco

Mar 19th, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.85 KB | None | 0 0
  1. //banco
  2.  
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. class credito{
  7.  
  8. private:
  9.         char* titular;
  10.         double saldo;
  11. public:
  12.         credito(char*);
  13.         ~credito();
  14.         void deposito(double);
  15.         void retiro(double);
  16.         void show();
  17. };
  18.  
  19. class nomina{
  20.  
  21. private:
  22.         char* titular;
  23.         double saldo;
  24. public:
  25.         nomina(char*);
  26.         ~nomina();
  27.         void deposito(double);
  28.         void retiro(double);
  29.         void show();
  30. };
  31.  
  32. class ahorro{
  33.  
  34. private:
  35.         char* titular;
  36.         double saldo;
  37. public:
  38.         ahorro(char*);
  39.         ~ahorro();
  40.         void deposito(double);
  41.         void retiro(double);
  42.         void show();
  43. };
  44.  
  45. // Constructores
  46. credito :: credito(char*titular)
  47. {
  48. this->titular=titular;
  49. saldo=1000.0;
  50. }
  51.  
  52. nomina :: nomina(char*titular)
  53. {
  54. this->titular=titular;
  55. saldo=1000.0;
  56. }
  57.  
  58. ahorro :: ahorro(char*titular)
  59. {
  60. this->titular=titular;
  61. saldo=1000.0;
  62. }
  63. //
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. int main ()
  71. {
  72.  
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement