Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Kalucki4_5
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.ReadKey();
- }
- }
- public interface IFigura
- {
- int Obwod { get; }
- int Pole { get; }
- }
- public class Kwadrat : IFigura
- {
- private int dl_boku_kwadrat;
- public int obwod_kwadrat;
- public int pole_kwadrat;
- public int Obwod {
- get {
- obwod_kwadrat = 4 * dl_boku_kwadrat;
- return 0;
- } }
- public int Pole {
- get {
- pole_kwadrat = dl_boku_kwadrat * dl_boku_kwadrat;
- return 0;
- }}
- public override string ToString()
- {
- return dl_boku_kwadrat.ToString();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement