As just stated in a recent question and answer, you can\'t inherit from a static class. How does one enforce the rules that go along with static classes inside VB.NET? Sin
You can create static class in vb.net. The solution is
Friend NotInheritable Class DB Public Shared AGE As Integer = 20 End Class
AGE variable is public static, you can use it in other code just like this
Dim myage As Integer = DB.AGE
Friend = public, NotInheritable = static