Using Predefined Methods

Go down

Using Predefined Methods

Post by Admin on Fri Aug 17, 2018 8:38 am

All modern programming languages contain many methods that have already been written
for 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.

Predefined methods save you time and effort. For example, in most languages, displaying a
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.
avatar
Admin
Admin

Posts : 3
Join date : 2018-08-13
Age : 20

View user profile http://odessaeiman.forumotion.com

Back to top Go down

Re: Using Predefined Methods

Post by johnarnold on Thu Aug 23, 2018 12:29 pm

can we modify the predefined methods of classes in java?

johnarnold
GURU

Posts : 10
Join date : 2018-08-23

View user profile

Back to top Go down

Re: Using Predefined Methods

Post by johnarnold on Thu Aug 23, 2018 12:30 pm

What is the difference between main user defined method and predefined method?

johnarnold
GURU

Posts : 10
Join date : 2018-08-23

View user profile

Back to top Go down

Re: Using Predefined Methods

Post by thegreatunknown on Mon Sep 03, 2018 1:38 pm

Its a must have in every computer language.

thegreatunknown
GURU

Posts : 10
Join date : 2018-09-03

View user profile

Back to top Go down

Re: Using Predefined Methods

Post by thegreatunknown on Mon Sep 03, 2018 1:39 pm

I think there are predefined function for getting current time /date, am I right?

thegreatunknown
GURU

Posts : 10
Join date : 2018-09-03

View user profile

Back to top Go down

Re: Using Predefined Methods

Post by thegreatunknown on Mon Sep 03, 2018 1:45 pm

johnarnold wrote:can we modify the predefined methods of classes in java?
No Question

thegreatunknown
GURU

Posts : 10
Join date : 2018-09-03

View user profile

Back to top Go down

Re: Using Predefined Methods

Post by thegreatunknown on Mon Sep 03, 2018 2:01 pm

johnarnold wrote:What is the difference between main user defined method and predefined method?
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?

thegreatunknown
GURU

Posts : 10
Join date : 2018-09-03

View user profile

Back to top Go down

Re: Using Predefined Methods

Post by rashlyndelacruz on Mon Sep 03, 2018 4:33 pm

thegreatunknown wrote:
johnarnold wrote:What is the difference between main user defined method and predefined method?
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?
We have the same answer @thegreatunknown lol

rashlyndelacruz

Posts : 1
Join date : 2018-09-03

View user profile

Back to top Go down

Re: Using Predefined Methods

Post by DespicableMe on Mon Oct 01, 2018 10:04 pm

HOW do we know that are methods are predefined or not ?

DespicableMe
GURU

Posts : 10
Join date : 2018-10-01

View user profile

Back to top Go down

Re: Using Predefined Methods

Post by DespicableMe on Wed Oct 03, 2018 9:52 am

what are the uses of Predefined Methods?

DespicableMe
GURU

Posts : 10
Join date : 2018-10-01

View user profile

Back to top Go down

Re: Using Predefined Methods

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum