June 22, 2009

subj. ni sir

using System;
using System.Collections.Generic;
using System.Text;

namespace Arithmetic
{
class clsAdd
{
private int _firstNumber = 0;
public int FirstNumber {
get { return _firstNumber; }
set { _firstNumber = value; }

}

private int secondNumber = 0;
public int secondNumber {
get { return _secondNumber; }
set { _secondNumber = value; }
}

public int GetSum(){
return _firstNumber + _secondNumber;
}

///////////////////////////////////

public partial class Form1:Form
private clasAdd objAdd=new clsAdd{};

public Form1(){
initializecomponent();
}

}
}

Comments »

The URI to TrackBack this entry is: http://seansome.blogsome.com/2009/06/22/subj-ni-sir/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.