AalborgHTX

Bankkunde klasse

May 31st, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.05 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace WindowsFormsApplication157
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         public Form1()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void button1_Click(object sender, EventArgs e)
  21.         {
  22.             Bankkunde1 reftilobjekt = new Bankkunde1(1212124565, 5, 1000);
  23.             reftilobjekt.cpr = 1000;
  24.  
  25.         }
  26.     }
  27. }
  28.  
  29.  
  30. using System;
  31. using System.Collections.Generic;
  32. using System.Linq;
  33. using System.Text;
  34. using System.Threading.Tasks;
  35.  
  36. namespace WindowsFormsApplication157
  37. {
  38.     class Bankkunde1
  39.     {
  40.  
  41.         public Bankkunde1(int tempcpr, int temprente, int tempsaldo)
  42.         {
  43.             cpr = tempcpr;
  44.             rente = temprente;
  45.             saldo = tempsaldo;
  46.         }
  47.         public int cpr;
  48.         public int rente;
  49.         public int saldo;
  50.  
  51.     }
  52. }
Add Comment
Please, Sign In to add comment