Android Tutorial Java-Methods and Classes(Java-10) | Edureka

Publié le: 22 octobre 2012
sur la chaîne: edureka!
2,773
4

Take a Free introductory instructor-led Live class at : http://www.edureka.co/android-develop...

This android tutorial talks about Java Methods and Classes in detail:

*What are Java Methods?
*What are Java Classes?
*How they are used?
*Example on Java Methods and Classes.

Classes :
--------------
In simple word we can say that class is a pattern which we define and every object of that class will follow that pattern.

A class definition can contain:

*variables (fields)
*initialization code
*methods


Methods :
---------------
A method is a named sequence of code that can be invoked by other Java code.
A method takes some parameters, performs some computations and then optionally returns a value (or object).
Methods can be used as part of an expression statement.

Ex:

public float celsius( float temp) {
return(((temp * 9.0f) / 5.0f) + 32.0f );
}

------------------------------------------------------------------

Please write back to us at support@edureka.in or call us at +91-8880862004 for more information.
http://www.edureka.co

Use the link to watch all videos of this session :
   • Android Tutorial - Java Essentials fo...  


Sur cette page du site, vous pouvez voir la vidéo en ligne Android Tutorial Java-Methods and Classes(Java-10) | Edureka durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur edureka! 22 octobre 2012, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,773 fois et il a aimé 4 téléspectateurs. Bon visionnage!