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 6093003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:30:36+00:00 2026-05-23T12:30:36+00:00

I extra said derived classes and NOT children classes. I have a base class

  • 0

I extra said derived classes and NOT children classes.

I have a base class and many derived classes. One derived class should call a method on the base class which again is calling a method on each derived class.

How is that possible? What design pattern should I go for implemention a communication

“channel” between my Controllers driving the UI using MVVM design pattern? I know of mediator

pattern but do not like it much as it blurs the borders of an architecture.

  • 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-23T12:30:37+00:00Added an answer on May 23, 2026 at 12:30 pm

    It’s not really a design pattern, but really an understanding of virtual method calls. Let’s say I have something:

    public abstract class Foo
    {
        protected void DoFoo()
        {
            DoFooInternal();
        }
    
        protected abstract void DoFooInternal();
    }
    

    And I have a derived class:

    public class Bar : Foo
    {
        protected override void DoFooInternal()
        {
            // Something here
        }
    }
    

    In the above example, any call to DoFoo on the base class makes a virtual call to the DoFooInternal method of the derived class. I could also define my DoFooInternal as virtual, if I wanted to provide a baseline implementation:

    protected virtual void DoFooInternal()
    {
       // Baseline implementation here
    }
    

    In the case of your controllers, this would be the same, you can specify some common shared logic in a ControllerBase instance and derive a child controller, e.g. PeopleController which can despatch method calls to the base class, which can in turn despatch calls back to virtual methods in the derived class…

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

Sidebar

Related Questions

I have created some extra functionality on my Linq-to-SQL classes to make things easier
I have been told this many times. But I don't know WHY...What extra cost
How do I add extra data into an atom feed that does not map
I accidentally left an extra comma at the end of one of my annotation
DI creates an extra layer of abstraction so that if your implementation class ever
I have heard it said that Objective-C is a 'simple' language, i.e. in terms
It seems to be often said that Task Manager does not provide an accurate
I saw a comment on another question (I forget which one) encouraging the asker
This is the first project by me which is using MongoDB. I have hosted
Is it possible to cancel the said behavior? A task for extra credit: Figure

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.