*Return variable type* *Function Name* (*Function parameters*)
For example:
int MyFunction (x,y)
if we declare a method as final then it can be changed.
// declare a function int* function(int, int); or int* (function)(int, int); // declare a pointer to a function int* (*pointer_to_function)(int, int);
*function();this declares a pointer function!
yes, we can not declare a function in the body of another function. but if we declare a function in the body of another function then we can call that very function only in that particular function in which it is declared; and that declared function is not known to other functions present in your programme. So if a function is required in almost all functions of your programme so you must declare it outside the main function i.e in the beginning of your programme.
first declare and then call
yes
A friend is any class, class method or function that is declared to be a friend of a class. Friends have private access to the classes that declare them friends.
when overriding of a class or a method is necessary, they can be declared as abstract
You declare a method final in Java when you do not want any subclasses of your class to be able to override the method. I have also heard that this allows the Java compiler to make more intelligent decisions. For example, it supposedly allows Java to decide when to make a method inline. (Note that this is all unconfirmed)
Your question makes no sense.
Declare the function static.
Declare the function static.