Back to notes -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'  Slide program -- Keyboard shortcut: 't'    A simple class A.Lecture 6 - slide 9 : 20
Program 2
using System;

public class A{
  
  private int state;  

  public A(int i){  
    state = i;
  }

  public void MethodA(string s){  
    Console.WriteLine("A: {0}, {1}", state, s);
  }   
}
 
 
 
 
An instance variable.
 
Constructor.
 
 
 
An instance method.