Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace WindowsFormsApplication154
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- Bankkunde kunde1 = new Bankkunde();
- kunde1.saldo = 200;
- kunde1.saldo = kunde1.saldo + 100;
- int tal = kunde1.volapyk();
- }
- }
- }
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace WindowsFormsApplication154
- {
- class Bankkunde
- {
- public int cpr;
- public int saldo;
- public int volapyk()
- {
- return cpr * saldo;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement