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

  • SEARCH
  • Home
  • 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 1047065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:14:41+00:00 2026-05-16T16:14:41+00:00

Good day. I am just wondering how to create a base class and use

  • 0

Good day. I am just wondering how to create a base class and use it for my business objects. The base class would have some attributes like IsNew, IsDirty etc.

  1. What I want to know is how to
    inherit this base class ?
  2. Also what does the ‘base’ syntax
    means ? Is it always required to use ‘base’ to access the base class ?
  3. How many base classes can I have ?
  4. Can you show me a little sample

I did google but it was sort of confusing. Here I would get a quick answer. Thank you.

  • 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-16T16:14:42+00:00Added an answer on May 16, 2026 at 4:14 pm

    Any class which is not sealed can be a base class.

    To inherit from a class, the syntax would be

    class ChildClass : ParentClass
    

    in C#, the base keyword is used to refer to the parent class from within the child class.

    Since there is no multiple inheritance i.e a class can have only one immediate parent class, base refers to that parent

    I dont think it is always required to use base.XYX to use the base class. This kind of syntax is commonly used for constructors to call the base constructor or to invoke base members which might be over-ridden
    More details on base here

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

Sidebar

Related Questions

I am wondering whether anyone came up with good use cases of the $^
Good day. I'd like to ask a question. Why TextBox control Txt in this
Good day to all. I have the following setup: A page with html, js,
Good day all, for running multiple threads concurrently is it advisable to create different
Good day! I am a newbie on creating database... I need to create a
I am writing a chat program for my networking class and I have all
I'm just starting to get into backbone.js. It looks like it's pretty involved and
Good day. I got an HTML page which is small and has no scroll
Good day! I am trying to disable access on pages that are not part
Good day! I made a filter servlet and I am trying to not include

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.