H
hillcountry74
Hi,
I'm a newbie to OOP and VB.Net. In the business layer, I have a base
class, which is an abstract class in VB.Net. The derived class
overrides a method and calls other methods in the base class. To make
it more clear:
Class NotInheritable BaseAbstract
Sub Method1()
code
end Sub
Sub Method2()
code
Calls Method1
code
end Sub
Sub Method3()
code
Calls Method2
code
End Sub
Overidable Sub Method4()
End Sub
End Class
Class Derived : Inherits BaseAbstract
Overrides Sub Method4()
code
Calls Method3
code
End Sub
End Class
The UI creates an object of Derived class.
I wanted to know what's the best way to handle exceptions? I know I
should have thought about in the design phase
Thanks for your help.
hillcountry74
I'm a newbie to OOP and VB.Net. In the business layer, I have a base
class, which is an abstract class in VB.Net. The derived class
overrides a method and calls other methods in the base class. To make
it more clear:
Class NotInheritable BaseAbstract
Sub Method1()
code
end Sub
Sub Method2()
code
Calls Method1
code
end Sub
Sub Method3()
code
Calls Method2
code
End Sub
Overidable Sub Method4()
End Sub
End Class
Class Derived : Inherits BaseAbstract
Overrides Sub Method4()
code
Calls Method3
code
End Sub
End Class
The UI creates an object of Derived class.
I wanted to know what's the best way to handle exceptions? I know I
should have thought about in the design phase
Thanks for your help.
hillcountry74