Abstract Class - 500 pts

I have a business layer dill where each class inherits a base class, the base class provides at the moment a proxy for a web service, it will also contain in the future other settings which can be used by the business layer classes, is this the best way to do it?

Or should I just create a shared class which exposes numerous methods


rocky050371Asked:
Who is Participating?
 
manojkumarpsCommented:
Hello  rocky050371,
           I would suggest you to not to use the shared class as it may create a problem it is called again and again and you have to refresh it.

      The best way to do it is to have the base class insdtatntiated as said by you and use all the properties and methods inside that rather than shared one.

Regards,
Manoj
             
0
 
razorback041Commented:
will the methods be implemented differently for each class?  If not, then one shared class for static methods seems to be the most efficient
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.