public class DbCommand
{
public DbCommand(object DbConnection) -> public DbCommand(DbConnection DbConnection)
{
Console.WriteLine("Db_COMMAND is online...\n");
if (DbConnection is null)
{
throw new ArgumentNullException(nameof(DbConnection));
}
}
public void Executerrr()
{
/*
Here must be an object that should "discover" methods OpenConnection() and CloseConnection()
but I cannot figure out what kind of object should I put inside Execute() method...
*/
}
}
java -version
java version "1.8.0_301"
Java(TM) SE Runtime Environment (build 1.8.0_301-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.301-b09, mixed mode)