├── ByteBank
├── obj
│ ├── Debug
│ │ └── net6.0
│ │ │ ├── ByteBank.csproj.BuildWithSkipAnalyzers
│ │ │ ├── ByteBank.genruntimeconfig.cache
│ │ │ ├── ByteBank.AssemblyInfoInputs.cache
│ │ │ ├── ByteBank.csproj.CoreCompileInputs.cache
│ │ │ ├── ByteBank.dll
│ │ │ ├── ByteBank.pdb
│ │ │ ├── apphost.exe
│ │ │ ├── ref
│ │ │ └── ByteBank.dll
│ │ │ ├── refint
│ │ │ └── ByteBank.dll
│ │ │ ├── ByteBank.assets.cache
│ │ │ ├── ByteBank.csproj.AssemblyReference.cache
│ │ │ ├── .NETCoreApp,Version=v6.0.AssemblyAttributes.cs
│ │ │ ├── ByteBank.GlobalUsings.g.cs
│ │ │ ├── ByteBank.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ ├── ByteBank.AssemblyInfo.cs
│ │ │ └── ByteBank.csproj.FileListAbsolute.txt
│ ├── ByteBank.csproj.nuget.g.targets
│ ├── project.nuget.cache
│ ├── ByteBank.csproj.nuget.g.props
│ ├── project.assets.json
│ └── ByteBank.csproj.nuget.dgspec.json
├── bin
│ └── Debug
│ │ └── net6.0
│ │ ├── ByteBank.dll
│ │ ├── ByteBank.exe
│ │ ├── ByteBank.pdb
│ │ ├── ByteBank.runtimeconfig.json
│ │ └── ByteBank.deps.json
├── Program.cs
├── ByteBank.csproj
├── Cliente.cs
└── CuentaBancaria.cs
└── ByteBank.sln
/ByteBank/obj/Debug/net6.0/ByteBank.csproj.BuildWithSkipAnalyzers:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.genruntimeconfig.cache:
--------------------------------------------------------------------------------
1 | 1b34239a145385344499ac5c6d30a982988f3b79
2 |
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | 1d38216c35f5d7f319ffe8ed177cf1d910c96ad8
2 |
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | c40c76d6d2f4f043e81c2b1ff04a24e002ef504b
2 |
--------------------------------------------------------------------------------
/ByteBank/bin/Debug/net6.0/ByteBank.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alura-es-cursos/1733-etendiendo-excepciones-csharp/ProyectoInicial/ByteBank/bin/Debug/net6.0/ByteBank.dll
--------------------------------------------------------------------------------
/ByteBank/bin/Debug/net6.0/ByteBank.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alura-es-cursos/1733-etendiendo-excepciones-csharp/ProyectoInicial/ByteBank/bin/Debug/net6.0/ByteBank.exe
--------------------------------------------------------------------------------
/ByteBank/bin/Debug/net6.0/ByteBank.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alura-es-cursos/1733-etendiendo-excepciones-csharp/ProyectoInicial/ByteBank/bin/Debug/net6.0/ByteBank.pdb
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alura-es-cursos/1733-etendiendo-excepciones-csharp/ProyectoInicial/ByteBank/obj/Debug/net6.0/ByteBank.dll
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alura-es-cursos/1733-etendiendo-excepciones-csharp/ProyectoInicial/ByteBank/obj/Debug/net6.0/ByteBank.pdb
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/apphost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alura-es-cursos/1733-etendiendo-excepciones-csharp/ProyectoInicial/ByteBank/obj/Debug/net6.0/apphost.exe
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ref/ByteBank.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alura-es-cursos/1733-etendiendo-excepciones-csharp/ProyectoInicial/ByteBank/obj/Debug/net6.0/ref/ByteBank.dll
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/refint/ByteBank.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alura-es-cursos/1733-etendiendo-excepciones-csharp/ProyectoInicial/ByteBank/obj/Debug/net6.0/refint/ByteBank.dll
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alura-es-cursos/1733-etendiendo-excepciones-csharp/ProyectoInicial/ByteBank/obj/Debug/net6.0/ByteBank.assets.cache
--------------------------------------------------------------------------------
/ByteBank/obj/ByteBank.csproj.nuget.g.targets:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ByteBank/bin/Debug/net6.0/ByteBank.runtimeconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net6.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "6.0.0"
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.csproj.AssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alura-es-cursos/1733-etendiendo-excepciones-csharp/ProyectoInicial/ByteBank/obj/Debug/net6.0/ByteBank.csproj.AssemblyReference.cache
--------------------------------------------------------------------------------
/ByteBank/Program.cs:
--------------------------------------------------------------------------------
1 | using ByteBank;
2 | using ByteBank.DatosCliente;
3 |
4 | // See https://aka.ms/new-console-template for more information
5 | Console.WriteLine("Aplicación de cuentas bancarias!");
6 |
7 |
8 | Console.ReadLine();
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using System.Reflection;
4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
5 |
--------------------------------------------------------------------------------
/ByteBank/ByteBank.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net6.0
6 | enable
7 | enable
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ByteBank/obj/project.nuget.cache:
--------------------------------------------------------------------------------
1 | {
2 | "version": 2,
3 | "dgSpecHash": "4CmZg5xyWQ32btFsgxK9Il3huoxOA88mHU9iFTXS0b1XOzecw0zjxEC1NKbXNGhVPieAwvVnDvm+Z5yxFQlQLQ==",
4 | "success": true,
5 | "projectFilePath": "C:\\CursoCSharp3\\ByteBank\\ByteBank\\ByteBank.csproj",
6 | "expectedPackageFiles": [],
7 | "logs": []
8 | }
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
1 | //
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
--------------------------------------------------------------------------------
/ByteBank/bin/Debug/net6.0/ByteBank.deps.json:
--------------------------------------------------------------------------------
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v6.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v6.0": {
9 | "ByteBank/1.0.0": {
10 | "runtime": {
11 | "ByteBank.dll": {}
12 | }
13 | }
14 | }
15 | },
16 | "libraries": {
17 | "ByteBank/1.0.0": {
18 | "type": "project",
19 | "serviceable": false,
20 | "sha512": ""
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
1 | is_global = true
2 | build_property.TargetFramework = net6.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property._SupportedPlatformList = Linux,macOS,Windows
9 | build_property.RootNamespace = ByteBank
10 | build_property.ProjectDir = C:\CursoCSharp3\ByteBank\ByteBank\
11 |
--------------------------------------------------------------------------------
/ByteBank/Cliente.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace ByteBank.DatosCliente
8 | {
9 | public class Cliente
10 | {
11 | //public string nombre;
12 | //public string dni;
13 | //public string profesion;
14 |
15 | public Cliente (string _nombre)
16 | {
17 | Nombre = _nombre;
18 | }
19 |
20 | public string Nombre
21 | {
22 | get;set;
23 | }
24 | public string Dni
25 | {
26 | get; set;
27 | }
28 | public string Profesion
29 | {
30 | get; set;
31 | }
32 |
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Este código fue generado por una herramienta.
4 | // Versión de runtime:4.0.30319.42000
5 | //
6 | // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
7 | // se vuelve a generar el código.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: System.Reflection.AssemblyCompanyAttribute("ByteBank")]
15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
18 | [assembly: System.Reflection.AssemblyProductAttribute("ByteBank")]
19 | [assembly: System.Reflection.AssemblyTitleAttribute("ByteBank")]
20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
21 |
22 | // Generado por la clase WriteCodeFragment de MSBuild.
23 |
24 |
--------------------------------------------------------------------------------
/ByteBank/obj/ByteBank.csproj.nuget.g.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | True
5 | NuGet
6 | $(MSBuildThisFileDirectory)project.assets.json
7 | $(UserProfile)\.nuget\packages\
8 | C:\Users\ljcl7\.nuget\packages\
9 | PackageReference
10 | 6.3.0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ByteBank.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.3.32804.467
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ByteBank", "ByteBank\ByteBank.csproj", "{FD059864-5BE1-42B2-A057-0DEC30822F12}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {FD059864-5BE1-42B2-A057-0DEC30822F12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {FD059864-5BE1-42B2-A057-0DEC30822F12}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {FD059864-5BE1-42B2-A057-0DEC30822F12}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {FD059864-5BE1-42B2-A057-0DEC30822F12}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {1851440A-E934-4997-B585-73815724089D}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/ByteBank/obj/Debug/net6.0/ByteBank.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\CursoCSharp3\ByteBank\ByteBank\bin\Debug\net6.0\ByteBank.exe
2 | C:\CursoCSharp3\ByteBank\ByteBank\bin\Debug\net6.0\ByteBank.deps.json
3 | C:\CursoCSharp3\ByteBank\ByteBank\bin\Debug\net6.0\ByteBank.runtimeconfig.json
4 | C:\CursoCSharp3\ByteBank\ByteBank\bin\Debug\net6.0\ByteBank.dll
5 | C:\CursoCSharp3\ByteBank\ByteBank\bin\Debug\net6.0\ByteBank.pdb
6 | C:\CursoCSharp3\ByteBank\ByteBank\obj\Debug\net6.0\ByteBank.csproj.AssemblyReference.cache
7 | C:\CursoCSharp3\ByteBank\ByteBank\obj\Debug\net6.0\ByteBank.GeneratedMSBuildEditorConfig.editorconfig
8 | C:\CursoCSharp3\ByteBank\ByteBank\obj\Debug\net6.0\ByteBank.AssemblyInfoInputs.cache
9 | C:\CursoCSharp3\ByteBank\ByteBank\obj\Debug\net6.0\ByteBank.AssemblyInfo.cs
10 | C:\CursoCSharp3\ByteBank\ByteBank\obj\Debug\net6.0\ByteBank.csproj.CoreCompileInputs.cache
11 | C:\CursoCSharp3\ByteBank\ByteBank\obj\Debug\net6.0\ByteBank.dll
12 | C:\CursoCSharp3\ByteBank\ByteBank\obj\Debug\net6.0\refint\ByteBank.dll
13 | C:\CursoCSharp3\ByteBank\ByteBank\obj\Debug\net6.0\ByteBank.pdb
14 | C:\CursoCSharp3\ByteBank\ByteBank\obj\Debug\net6.0\ByteBank.genruntimeconfig.cache
15 | C:\CursoCSharp3\ByteBank\ByteBank\obj\Debug\net6.0\ref\ByteBank.dll
16 |
--------------------------------------------------------------------------------
/ByteBank/obj/project.assets.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 3,
3 | "targets": {
4 | "net6.0": {}
5 | },
6 | "libraries": {},
7 | "projectFileDependencyGroups": {
8 | "net6.0": []
9 | },
10 | "packageFolders": {
11 | "C:\\Users\\ljcl7\\.nuget\\packages\\": {}
12 | },
13 | "project": {
14 | "version": "1.0.0",
15 | "restore": {
16 | "projectUniqueName": "C:\\CursoCSharp3\\ByteBank\\ByteBank\\ByteBank.csproj",
17 | "projectName": "ByteBank",
18 | "projectPath": "C:\\CursoCSharp3\\ByteBank\\ByteBank\\ByteBank.csproj",
19 | "packagesPath": "C:\\Users\\ljcl7\\.nuget\\packages\\",
20 | "outputPath": "C:\\CursoCSharp3\\ByteBank\\ByteBank\\obj\\",
21 | "projectStyle": "PackageReference",
22 | "configFilePaths": [
23 | "C:\\Users\\ljcl7\\AppData\\Roaming\\NuGet\\NuGet.Config",
24 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
25 | ],
26 | "originalTargetFrameworks": [
27 | "net6.0"
28 | ],
29 | "sources": {
30 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
31 | "https://api.nuget.org/v3/index.json": {}
32 | },
33 | "frameworks": {
34 | "net6.0": {
35 | "targetAlias": "net6.0",
36 | "projectReferences": {}
37 | }
38 | },
39 | "warningProperties": {
40 | "warnAsError": [
41 | "NU1605"
42 | ]
43 | }
44 | },
45 | "frameworks": {
46 | "net6.0": {
47 | "targetAlias": "net6.0",
48 | "imports": [
49 | "net461",
50 | "net462",
51 | "net47",
52 | "net471",
53 | "net472",
54 | "net48",
55 | "net481"
56 | ],
57 | "assetTargetFallback": true,
58 | "warn": true,
59 | "frameworkReferences": {
60 | "Microsoft.NETCore.App": {
61 | "privateAssets": "all"
62 | }
63 | },
64 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.400\\RuntimeIdentifierGraph.json"
65 | }
66 | }
67 | }
68 | }
--------------------------------------------------------------------------------
/ByteBank/obj/ByteBank.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\CursoCSharp3\\ByteBank\\ByteBank\\ByteBank.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\CursoCSharp3\\ByteBank\\ByteBank\\ByteBank.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\CursoCSharp3\\ByteBank\\ByteBank\\ByteBank.csproj",
11 | "projectName": "ByteBank",
12 | "projectPath": "C:\\CursoCSharp3\\ByteBank\\ByteBank\\ByteBank.csproj",
13 | "packagesPath": "C:\\Users\\ljcl7\\.nuget\\packages\\",
14 | "outputPath": "C:\\CursoCSharp3\\ByteBank\\ByteBank\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\ljcl7\\AppData\\Roaming\\NuGet\\NuGet.Config",
18 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
19 | ],
20 | "originalTargetFrameworks": [
21 | "net6.0"
22 | ],
23 | "sources": {
24 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
25 | "https://api.nuget.org/v3/index.json": {}
26 | },
27 | "frameworks": {
28 | "net6.0": {
29 | "targetAlias": "net6.0",
30 | "projectReferences": {}
31 | }
32 | },
33 | "warningProperties": {
34 | "warnAsError": [
35 | "NU1605"
36 | ]
37 | }
38 | },
39 | "frameworks": {
40 | "net6.0": {
41 | "targetAlias": "net6.0",
42 | "imports": [
43 | "net461",
44 | "net462",
45 | "net47",
46 | "net471",
47 | "net472",
48 | "net48",
49 | "net481"
50 | ],
51 | "assetTargetFallback": true,
52 | "warn": true,
53 | "frameworkReferences": {
54 | "Microsoft.NETCore.App": {
55 | "privateAssets": "all"
56 | }
57 | },
58 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.400\\RuntimeIdentifierGraph.json"
59 | }
60 | }
61 | }
62 | }
63 | }
--------------------------------------------------------------------------------
/ByteBank/CuentaBancaria.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ByteBank.DatosCliente;
7 |
8 | namespace ByteBank
9 | {
10 | public class CuentaBancaria
11 | {
12 | //Atributos de la clase
13 | public static int _cantidad_cuentas = 0;
14 |
15 | //Atributos de instancia
16 | public string _numero_cuenta;
17 | public string _numero_agencia;
18 | private double _saldo;
19 |
20 | public CuentaBancaria(string _numero_cuenta, string _numero_agencia)
21 | {
22 | NumeroCuenta = _numero_cuenta;
23 | NumeroAgencia = _numero_agencia;
24 |
25 | _cantidad_cuentas++;
26 | }
27 |
28 |
29 | //Propiedades
30 |
31 |
32 | public Cliente Cliente
33 | {
34 | get;set;
35 | }
36 |
37 | public string NumeroCuenta
38 | {
39 | get { return _numero_cuenta; }
40 | set
41 | {
42 | if (value != null && value != "")
43 | _numero_cuenta = value;
44 | }
45 | }
46 |
47 | public string NumeroAgencia
48 | {
49 | get { return _numero_agencia; }
50 | set
51 | {
52 | if (value != null && value != "")
53 | _numero_agencia = value;
54 | }
55 | }
56 |
57 |
58 | public double Saldo
59 | {
60 | get { return _saldo; }
61 | set {
62 | if (value >= 0)
63 | {
64 | _saldo = value;
65 | }
66 | else
67 | {
68 | _saldo = 0;
69 | }
70 | }
71 | }
72 |
73 | public double TasaInteres
74 | {
75 | get;set;
76 | }
77 |
78 | public double LimiteSobregiro
79 | {
80 | get; set;
81 | }
82 |
83 | public bool CuentaActiva
84 | {
85 | get; set;
86 | }
87 |
88 |
89 |
90 | //Métodos
91 |
92 | //Método RetirarDinero
93 | public bool RetirarDinero(double valorARetirar)
94 | {
95 |
96 | if (Saldo < valorARetirar)
97 | {
98 | Console.WriteLine("No hay saldo suficiente para el retiro");
99 | return false;
100 | } else if (valorARetirar <= 0)
101 | {
102 | Console.WriteLine("El valor a retirar debe ser mayor a 0");
103 | return false;
104 | }
105 |
106 | //saldo = saldo - valorARetirar;
107 | Saldo-= valorARetirar;
108 |
109 | return true;
110 | }
111 |
112 | //Método DepositarDinero
113 | public void DepositarDinero(double valorADepositar)
114 | {
115 | if (valorADepositar < 0)
116 | {
117 | Console.WriteLine("No es posible depositar valores negativos");
118 | return;
119 | }
120 | Saldo += valorADepositar;
121 | return;
122 | }
123 |
124 | //Método TransferirSaldo
125 | public double TransferirSaldo(double valorATransferir, CuentaBancaria cuentaReceptora)
126 | {
127 | //Retiramos el saldo de la cuenta origen
128 | RetirarDinero(valorATransferir);
129 |
130 | cuentaReceptora.DepositarDinero(valorATransferir);
131 |
132 | return Saldo;
133 |
134 | }
135 |
136 | /*
137 | public void DefinirSaldo(double saldoInicial)
138 | {
139 | if (saldoInicial >= 0)
140 | {
141 | saldo = saldoInicial;
142 | }
143 | else
144 | {
145 | Console.WriteLine("Saldo Inicial debe ser mayor o igual que 0");
146 | }
147 | }
148 |
149 | public double ObtenerSaldo()
150 | {
151 | return saldo;
152 | }
153 | */
154 | }
155 | }
156 |
--------------------------------------------------------------------------------