Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- }
- }
- }
- class polynomial
- { public polynomial()
- public override string ToString()
- {
- string s = .ToString();
- return ;
- }
- public static polynomial operator -(polynomial , polynomial)
- {
- return new polynomial( - );
- }
- public readonly int x, y;
- public TwoDPoint(int x, int y) //constructor
- {
- this.x = x;
- this.y = y;
- }
- public override bool Equals(System.Object obj)
- {
- if (obj == null)
- {
- return false;
- }
- TwoDPoint p = obj as TwoDPoint;
- if ((System.Object)p == null)
- {
- return false;
- }
- return (x == p.x) && (y == p.y);
- }
- public bool Equals(TwoDPoint p)
- {
- if ((object)p == null)
- {
- return false;
- }
- return (x == p.x) && (y == p.y);
- }
- public override int GetHashCode()
- {
- return ;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment