When reading articles, manuals, etc... about programming, i always come across the word qualified
. like in java the fully qualified class name would be com.example.Class. Reading
this article, defines the scope resolution operator ::
in C++ as being used to Qualify hidden names so you can still use them. Is there a definition for this ? Beccause it seems to be used in a different context each time.
intransitive verb. 1 : to be or become fit (as for an office) : meet the required standard. 2 : to acquire legal or competent power or capacity has just qualified as a lawyer. 3a : to exhibit a required degree of ability in a preliminary contest qualified for the finals.
[transitive] to give someone the skills and knowledge they need to do something qualify somebody (for something) This training course will qualify you for a better job. qualify somebody to do something The test qualifies you to drive heavy vehicles.
To qualify is to be entitled to something or to fit the requirements of something, or to modify or soften a statement or action. When a job requires a college degree and you have a college degree, this is an example of a time when you qualify for the job.
1 : not fit : not having requisite qualifications. 2 : not modified or restricted by reservations : complete an unqualified denial.
In computer programming, a fully qualified name is an unambiguous name that specifies which object, function, or variable a call refers to without regard to the context of the call. In a hierarchical structure, a name is fully qualified when it "is complete in the sense that it includes (a) all names in the hierarchic sequence above the given element and (b) the name of the given element itself." Thus fully qualified names explicitly refer to namespaces that would otherwise be implicit because of the scope of the call. While always done to eliminate ambiguity, this can mean different things dependent on context.
Source Wikipedia
In short what it means is that,
You can have a class named Math
in your project, but Math
is already present in Java too.
So for unambiguously identifying which class you are actually referring to you need to qualify the name with package too:
java.lang.Math //refers to java class Math
org.myproject.Math //refers to your project Math class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With