class MathOperations {
static int add(int a, int b) {
return a + b
}
static int subtract(int a, int b) {
return a - b
}
}
// Calling static methods without creating an object
def sum = MathOperations.add(5, 3)
def difference = MathOperations.subtract(10, 4)
println("Sum: $sum")
println("Difference: $difference")
Video goes here
A small piece of code or text that can be reused or inserted into a larger document.
A glossary is a collection of words pertaining to a specific topic. In your articles or dissertation, it’s a list of all terms you used that may not immediately be obvious to your reader. Your glossary only needs to include terms that your reader may not be familiar with, and it’s intended to enhance their understanding of your work. Glossaries are not mandatory, but if you use a lot of technical or field-specific terms, it may improve readability to add one.
Was this article helpful?
Thank you for your feedback! Our team will get back to you