Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
Example: Confused example fixed?
Example: Change to compile and demonstrate paramters to a constructor
Line 40:
class myClass
{
private int mA;
private string mB;
 
public myClass(int a, string b)
{
amA = 1a;
bmB = 2b;
}
}