Abstract Class - 500 pts

Posted on 2006-04-10
Last Modified: 2010-04-23
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

Question by:rocky050371
    LVL 5

    Expert Comment

    will the methods be implemented differently for each class?  If not, then one shared class for static methods seems to be the most efficient
    LVL 2

    Accepted Solution

    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.


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now