{
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 singletonAdditional code to write a little annoyed
CodePudding user response:
thank you moderator reply, novice learning, copied from the baidu,