D
dgleeson3
Hello All
I have three classes Form1, DataBase_Manager and Users.
Form 1 creates two object of type DataBase_Manager and Users as below.
Public Class Form1
Inherits Form
Public DataBase_Manager1 As New DataBase_Manager
Public User1 As New Users
My idea is that the DataBase_Manager1 object handles all database
interactions. The User1 object needs data from the database and must
ask the DataBase_Manager1 for the data.
So the user class has a function which needs to call a function in the
DataBase_Manager1 to have it retrieve the required data. How do I make
the functions in DataBase_Manager1 visible to the object User1. And
what is the best OO way of doing this in VB.NET
Many thanks for all replies.
Denis
I have three classes Form1, DataBase_Manager and Users.
Form 1 creates two object of type DataBase_Manager and Users as below.
Public Class Form1
Inherits Form
Public DataBase_Manager1 As New DataBase_Manager
Public User1 As New Users
My idea is that the DataBase_Manager1 object handles all database
interactions. The User1 object needs data from the database and must
ask the DataBase_Manager1 for the data.
So the user class has a function which needs to call a function in the
DataBase_Manager1 to have it retrieve the required data. How do I make
the functions in DataBase_Manager1 visible to the object User1. And
what is the best OO way of doing this in VB.NET
Many thanks for all replies.
Denis