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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:31:12+00:00 2026-06-12T05:31:12+00:00

I have three classes: public class A { } public class B { void

  • 0

I have three classes:

public class A
{
}
public class B
{
    void MethodA(ref A obj) { }

    void MethodB(A obj) { }
}
public class C : B
{
    void MethodA(ref A obj) { }
}

My first question : Are above methods are overloaded?

Second question : Difference between passing simple and refernce type objects as I know classes are reference type.

Third question : Is method in class C override method in class B ?

  • 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-12T05:31:13+00:00Added an answer on June 12, 2026 at 5:31 am

    1: no; B.MethodA and C.MethodA are unrelated; the fact that they are implicitly private means it isn’t even method-hiding

    2: is not a question, but: pass-by-value vs pass-by-reference (the ref keyword) is largely orthogonal to value-type vs reference-type (struct vs class); it is a commonly misunderstood subject, but I can’t really clarify without an actual question

    3: no; the absence of any of virtual, override or abstract is the biggest clue

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

Sidebar

Related Questions

i have three classes. 1.Class:` public class Handler { private String name; private String
I have these three classes: Command: package pack; public abstract class Command impements java.io.Serializable
I have three classes: Generic, CFG, and Evaluator. Here's Generic: class Generic: public virtual
I have three classes; Classes A and B both reference class C . How
If I have three classes class A class B extends A class C extends
I have defined two classes below: public class junk { private BigInteger a =
I have three classes. Input.java (This is the gui class) This class takes in
The initial question was I have three classes A , B and C .
Is there a way to force classes in Java to have public static final
Have three classes User, Group and Field. Many to many relationship on User /

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.