Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace @static
- {
- class Program
- {
- class Punkt
- {
- protected double x;
- protected double y;
- public double X
- {
- get
- {
- return x;
- }
- set
- {
- x = value;
- }
- }
- public double Y
- {
- get
- {
- return y;
- }
- set
- {
- y = value;
- }
- }
- public Punkt(double x, double y)
- {
- this.x = x;
- this.y = y;
- }
- public Punkt()
- : this(0, 0)
- {
- }
- }
- static void Main(string[] args)
- {
- Punkt p1 = new Punkt(-10, 100);
- Console.WriteLine(p1.X + " " + p1.Y);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement