Using Predefined Methods
5 posters
Advanced Modularization Techniques :: Advanced Modularization Techniques :: Advanced Modularization Techniques
Page 1 of 1
Using Predefined Methods
All modern programming languages contain many methods that have already been written
for programmers. Predefined methods might originate from several sources:
Predefined methods save you time and effort. For example, in most languages, displaying afor programmers. Predefined methods might originate from several sources:
- Some prewritten methods are built into a language. For example, methods that perform
input and output are usually predefined.
- When you work on a program in a team, each programmer might be assigned specific
methods to create, and your methods will interact with methods written by others.
- If you work for a company, many standard methods may already have been written and
you will be required to use them. For example, the company might have a standard
method that displays its logo.
message on the screen involves using a built-in method. When you want to display Hello on
the command prompt screen in C#, you write the following:
Console.WriteLine("Hello");
In Java, you write:
System.out.println("Hello");
In these statements, you can recognize WriteLine() and println() as method names
because they are followed by parentheses; the parentheses hold an argument that represents
the message to display. If these methods were not prewritten, you would have to know the
low-level details of how to manipulate pixels on a screen to display the characters. Instead, by
using the prewritten methods, you can concentrate on the higher-level task of displaying a
useful and appropriate message.
because they are followed by parentheses; the parentheses hold an argument that represents
the message to display. If these methods were not prewritten, you would have to know the
low-level details of how to manipulate pixels on a screen to display the characters. Instead, by
using the prewritten methods, you can concentrate on the higher-level task of displaying a
useful and appropriate message.
Re: Using Predefined Methods
can we modify the predefined methods of classes in java?
johnarnold- GURU
- Posts : 10
Join date : 2018-08-23
Re: Using Predefined Methods
What is the difference between main user defined method and predefined method?
johnarnold- GURU
- Posts : 10
Join date : 2018-08-23
Re: Using Predefined Methods
Its a must have in every computer language.
thegreatunknown- GURU
- Posts : 10
Join date : 2018-09-03
Re: Using Predefined Methods
I think there are predefined function for getting current time /date, am I right?
thegreatunknown- GURU
- Posts : 10
Join date : 2018-09-03
Re: Using Predefined Methods
Nojohnarnold wrote:can we modify the predefined methods of classes in java?
thegreatunknown- GURU
- Posts : 10
Join date : 2018-09-03
Re: Using Predefined Methods
User defined method is the one made by the user/programmer while predefined method are the methods that are pre-installed in a computer language. Is it correct?johnarnold wrote:What is the difference between main user defined method and predefined method?
thegreatunknown- GURU
- Posts : 10
Join date : 2018-09-03
Re: Using Predefined Methods
We have the same answer @thegreatunknown lolthegreatunknown wrote:User defined method is the one made by the user/programmer while predefined method are the methods that are pre-installed in a computer language. Is it correct?johnarnold wrote:What is the difference between main user defined method and predefined method?
rashlyndelacruz- Posts : 1
Join date : 2018-09-03
Re: Using Predefined Methods
HOW do we know that are methods are predefined or not ?
DespicableMe- GURU
- Posts : 10
Join date : 2018-10-01
Re: Using Predefined Methods
what are the uses of Predefined Methods?
DespicableMe- GURU
- Posts : 10
Join date : 2018-10-01
Advanced Modularization Techniques :: Advanced Modularization Techniques :: Advanced Modularization Techniques
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|