Home > Net >  C # problem
C # problem

Time:09-19

Class CDatabase
{
String DBFN;

Private OleDbConnection conn.
Private static CDatabase s;
Public static CDatabase S
{
The get
{
If (s==null)
S=new CDatabase ();
return s;
}
}
}

Member variables are the same as the name of the class, please know that there are constructors, this call what, thank you

CodePudding user response:

If you want to say is singleton

Additional code to write a little annoyed

CodePudding user response:

thank you moderator reply, novice learning, copied from the baidu,
  •  Tags:  
  • C#
  • Related