Для просмотра ссылки Войди или Зарегистрируйся
Название: Java Basics: An intro to Java and the Java developement [development] environment
Год: 2016
Издатель: Springer Fachmedien Wiesbaden; Springer Vieweg
Язык: german
Кол-во страниц: 45
Формат: PDF
Описание:
Function overloading is used when you want to apply analogous operations to different types using different algorithms:
CODE :
static int max(int a, int b) { } // Finding of maximum of two integers
static int max(double x, double y, double z) { } // Finding of maximum of three floating point values
In contrast to Java, you cannot create functions with default arguments.
Static functions within class can be invoked using function's name and list of actual parameters. To invoke static functions from another class, you should use the following syntax;
Скачать
Для просмотра ссылки Войдиили Зарегистрируйся
Название: Java Basics: An intro to Java and the Java developement [development] environment
Год: 2016
Издатель: Springer Fachmedien Wiesbaden; Springer Vieweg
Язык: german
Кол-во страниц: 45
Формат: PDF
Описание:
Function overloading is used when you want to apply analogous operations to different types using different algorithms:
CODE :
static int max(int a, int b) { } // Finding of maximum of two integers
static int max(double x, double y, double z) { } // Finding of maximum of three floating point values
In contrast to Java, you cannot create functions with default arguments.
Static functions within class can be invoked using function's name and list of actual parameters. To invoke static functions from another class, you should use the following syntax;
Скачать
Для просмотра ссылки Войди