answersLogoWhite

0

Specify the naming convention for variable constant class and method?

Updated: 10/25/2022
User Avatar

ChrisBertCompanionfb...

Lvl 1
9y ago

Best Answer

The naming convention for variables, constants, classes, and methods involves delimiting separate words with a non-alphanumeric character such as a hyphen or underscore.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Specify the naming convention for variable constant class and method?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

A variable that is declared inside a method is called variable?

It is called a local variable since it only exists inside the method.


What is the purpose if declaring object with keyword const in c plus plus?

The const keyword transforms a variable into a constant. This means the constant cannot be altered via that constant's identifier. The const keyword can also be applied to a class instance method, such that the method will not alter a class instance's immutable members. Note that the const keyword is merely a programming aid that provides assurances a constant will not be altered inadvertently. However, it is still possible to alter the constant by using a non-constant pointer to the constant. However you have to make a conscious effort to override constant behaviour.


What is out of scope in returning objects in java?

if u declare variable in method & tray to use this variable outside the method then it is out of scope


What is it called when java allows you to declare methods with the same name in a class?

Yes perfectly Legal Reason: The scope of a variable declared inside a method is only till the method's end. So by defining another variable of the same name inside a different method does not create any issues.


When a variable is declared within a method it ceases to exist when the method ends true or false?

It really depends on the programming language, but in general, this is true. In Java, for example, the scope of a variable declared in a method is the method - outside of the method it is inaccessible, and once the method finishes execution, the variable disappears.

Related questions

What is constant variable in research method?

A constant variable in research method is a factors or quantities that never change. Constant variables always remain the same.


what is the difference between final and static keywords?

static: we can use the keyword static either to method or to a variable. when we declare to a method,(eg: public static void main(String args[]),we can use this method without any object. when we use to a variable,there will be only one instance of that variable irrespective of how many objects that get created of that class. Final: Usage of final to method or to a variable makes them as constant. It's value cannot be changed...


What are variable of the scientific method?

what are the variable


What is the factor being measured in an experiment?

Constant Control Dependent Variable Descriptive Research Information Technology Independent Variable Model Experimental Research design Technology Science Scientific Method or Hypothese


A variable that is declared inside a method is called variable?

It is called a local variable since it only exists inside the method.


What is the purpose if declaring object with keyword const in c plus plus?

The const keyword transforms a variable into a constant. This means the constant cannot be altered via that constant's identifier. The const keyword can also be applied to a class instance method, such that the method will not alter a class instance's immutable members. Note that the const keyword is merely a programming aid that provides assurances a constant will not be altered inadvertently. However, it is still possible to alter the constant by using a non-constant pointer to the constant. However you have to make a conscious effort to override constant behaviour.


What is the meaning of a method in Java programming?

a method is a variable


What variable do you change when using the scientific method?

The independent variable


What is a constant in scientific method?

You all ask what is a constant? Well, a constant is something that you don't change in your experiment, and it's also referred to as a controlled variable. - Artsy Vandyke (That's really my name <3)


What is object in methods in java?

I guess an object in a method would be any object variable, used within a method. An object variable of course is a variable that is declared as a variable of a certain class type.


What variable is affected by the independent cariable in the scientific method?

the independent variable


What is High-low method of variable cost and fixed cost?

High and low method is the method for separating fixed cost and variable cost from mixed cost.