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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:28:33+00:00 2026-05-22T17:28:33+00:00

I have a MustInherit class with some MustOveride Methods in it. When i inherit

  • 0

I have a MustInherit class with some MustOveride Methods in it. When i inherit form that class, I automatically get the MustOveride Methods or properties.

My question is, I want to be able, to inherit from a class, get my MustOveride functions and methods, but then with some code already in it. I’ve once seen a .net class that did it, when I inherited from that class, I got the methods, with some comments in it.

Does anybody have an idea what i mean? (It a bit hard to describe 😉 )

  • 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-22T17:28:34+00:00Added an answer on May 22, 2026 at 5:28 pm

    I assume, you want to do have the following:
    When you inherit from that abstract base class, you want to have those abstract methods already partly implemented in your class.
    This is not possible out of the box. It could be achieved with some templating, but that has nothing to do with C# or VB.NET but with the IDE used.

    The only thing you can do is to create that method as virtual (C# – I don’t know how it is called in VB.NET) in the base class and call the base implementation 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 a MustInherit Parent class with two Child classes which Inherit from the
Sometimes I have to implement an interface or inherit a virtual (MustInherit) that the
I have a class that exposes an auto implemented property Enabled Public MustInherit Class
I have a base class which contains an abstract/MustInherit method. I want this method
I have a MustInherit .NET class which declares a constructor with an integer parameter.
I have a base class foo that will be used in multiple child classes
VB.NET 2008 .NET 3.5 I have two base classes that are MustInherit (partial). Let's
In my application I have some basic user information that needs to be displayed
I have a parent class in Android that inherits from Activity and all my
I have a generic class, on which I define a method that should take

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.