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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:19:29+00:00 2026-06-09T18:19:29+00:00

Not saying I would ever need this but how do you comment out an

  • 0

Not saying I would ever need this but how do you comment out an entire class after something like:

public class yadayada extends yadayadasquared {

    /**
     * Says Hello
     **/
    public String sayHello() {
        return "Hello";
    }
}

When there are nicely commented / documented methods within the class?

Let’s imagine that it’s for only for five minutes to avoid having the whole fork discussion….

And yes, you durned purists, I saw this!

https://stackoverflow.com/questions/123423/do-you-leave-historical-code-commented-out-in-classes-that-you-update

Let’s assume this is for a 5 minute test. Repo work for that? Nope. Delete? Love the control-slash suggestion.

  • 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-06-09T18:19:31+00:00Added an answer on June 9, 2026 at 6:19 pm

    Define “entire class”.

    Select the class’s contents, hit Command+/*, and your IDE should single-line comment everything. This way you still have the class available, just without functionality. Or select the entire class. Or rename the file. Or… but ultimately, what’s the point? Delete the file.

    * Or whatever your IDE’s sequence for single-line commenting is.

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

Sidebar

Related Questions

i am not saying its difficult but i would like to know what way
Does anyone see a problem with this, its not working saying bad file descriptor
Let me start by saying im not 100% the way Im handling this is
Let me start out by saying that I'm not a C developer and I
I keep getting an error saying that @android:style/Widget.Holo.Light.Button.Borderless is not public and so can't
I'm not saying that I'm lazy to do math, but is there a better
I would like to know how this type of slider, where the arrow next
I did do some googling and searching on this site but did not find
Possible Duplicate: CSVs without quotes not working with fgetcsv I would like to start
I have a class that looks like: class A { public: A(); void MethodThatWillNotBeInOtherStructure();

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.