In real word, there are many features in
television. Using them, we can personalize our television. One of them is volume.
We can change the volume as per our desire.
We give some inputs and television takes that
and processes something and set volume level.
In Java world, setting volume is a method, level
of volume is member of method and updated volume level is return type.
Method is a set of codes use to perform a
task resemblance to its name and returns a value. Method name also should
relate to class name.
We can define a method as below:
{Modifier}
{Return type} {methodName}({Parameters p}){
}
No comments:
Post a Comment
Thank you for your comments.