Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 647975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:46:55+00:00 2026-05-13T21:46:55+00:00

I have a clue about Object Oriented Programming: I need to have a parent

  • 0

I have a clue about Object Oriented Programming:

I need to have a parent class HandlerException which needs to define the sign of three methods (MethodA, MethodB, MethodC).

Then, I have a child class BusinessHandler which inherits from HandlerException and defines ONLY the MethodA of its parent class.

Then, I have a child class DataHandler which inherits from HandlerException and defines ONLY MethodC of its parent class.

Then, I have a class named CustomerDAO which inherits from DataHandler and consumes the MethodC written on its parent class. (consumes it like: DataHandler.MethodC).

As you can see, its a typical object oriented programming problem; I need to have some static methods (MethodC) to access it directly without any instance of the class. The parent class HandlerException could be abstract? and its 3 methods (A, B and C) could be ???? (that’s my question, how is the RIGHT way to write this parent class: abstract with abstract members, or virtual, or maybe an interface?)

I hope you got the idea of my question and that I made myself clear. Thanks in advance.

I forgot: I’m using C#, and to mention: MethodB would be implemented on the next release of the app.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:46:56+00:00Added an answer on May 13, 2026 at 9:46 pm

    Depends on the language you are using, but it sounds like the HandlerException class would be abstract and all three methods would be virtual.

    If the HandlerException class has absolutely no implementation whatsoever (only defines those three methods) then it would probably make sense to make it an interface rather than an abstract class.

    Also, where is MethodB implemented? If it isn’t implemented by any of those classes, then all the classes would need to be abstract.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have no clue how i can get an existing object structure based on
Warning: I have no clue about how to work with XML. I have a
I have no clue what an anonymous type is in C# nor how it
I have no clue of where to start on this. I've never done any
I have no clue how to validate this string. I am simply supplying an
I have searched for hours however I still have no clue what is wrong
I have searched through the net and still have no clue how to do
I have a task that's driving me crazy because i have no clue where
today I ran into an error and have no clue how to fix it.
I am new to Objective-C and I have no clue why this code is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.