DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Abstract members cannot be private?

By: rekha singh | 18 Jan 2010 4:53 pm

Hi,

The windows project worked very well then suddenly give the following  error how can I solve that

Error 1 'Task2.Registration .InitializeCompo nent()': virtual
or abstract members cannot be private C:\Documents and
Settings\Ali\ My Documents\Visual Studio 2005\Projects\ Task2\Task2
\Registration. Designer. cs 29 22 Task2

private void InitializeComponent ()
{
this.label1 = new System.Windows. Forms.Label( );
this.label2 = new System.Windows. Forms.Label( );
this.label3 = new System.Wi
............
}

 

Comments

If a memeber is private why abstraction? ?
make it

public void InitializeComponent ()
{
this.label1 = new System.Windows. Forms.Label( );
this.label2 = new System.Windows. Forms.Label( );
this.label3 = new System.Wi
............
}

 
By: rekha singh | 18 Jan 2010
If a memeber is private why abstraction? ?
make it

public void InitializeComponent ()
{
this.label1 = new System.Windows. Forms.Label( );
this.label2 = new System.Windows. Forms.Label( );
this.label3 = new System.Wi
............
}

 
By: rekha singh | 18 Jan 2010

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move