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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:45:05+00:00 2026-05-25T10:45:05+00:00

I am building an application that allows you to apply styles to regular expressions

  • 0

I am building an application that allows you to apply styles to regular expressions and their capture groups. I have a class called RegexGroup which contains a list of RegexGroup‘s and Regex‘s.

I will make a gui front-end in order to utilize these classes and I started by making a Project class that will be serializable but I realized that a Project class would be exactly the same as the RegexGroup. Is it good or bad practice to create a Project class that is exactly the same as another just because they will be used in different contexts? Or should I just stick with using the RegexGroup class?
Thanks in advance, ell.

note: I had trouble thinking of a title, please correct me if the use of the word “semantics” is incorrect

note: I am currently writing this in java but would this be an appropriate use of typedef in c++?

Edit: The classes are literally exactly the same. Their implementation and interface is completely identical, there are no differences whatsoever.

  • 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-25T10:45:06+00:00Added an answer on May 25, 2026 at 10:45 am

    If a Project is actually a RegexGroup . Then you could just derive from it.
    It makes perfect sense, if you say something is another, then that’s where you derive from it.

    class Project: public RegexGroup { }
    

    And of course, along the way you might find subtle differences where you could add stuff to the separate classes, or even create a base class for both.

    And yes, in c++ you could just use typedef to declare another alias to the same type.

    typedef RegexGroup Project;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building an application that allows a business to access their business via
I'm building a commenting mechanism into an application that allows a programmer/plugin author to
I'm building a web application, and I need to use an architecture that allows
I'm building an application that allows the user to create a Human model (graphical
I am building a web application that allows the user to upload high res
I'm building a one on one chat application that allows users to host rooms.
I have an application that allows users to save events. I would like to
I have an application that allows users to upload images. The test case I
I’m building a application that monitors information on a website. The website allows you
I am currently building a Flash AS 3.0 application that allows a user to

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.