Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
JAVA_TM_classnewEg

JAVA_TM_classnewEg

Ratings: (0)|Views: 28 |Likes:
Published by MITMCA

More info:

Published by: MITMCA on Aug 28, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

02/19/2014

pdf

text

original

 
1
Classes and ObjectsinJava
Class, method and constructor
 
2
 A 
dding Methods
class trial{ int a=8,b=9;void cal(){ int c = a*b;System.out.println("c= "+c);}}class TrialDemo1{ public static void main(String arg[]){ trial t = new trial();t.cal();}}
 
3
P
rogram
class trial{ int a,b;void cal(int m, int n){ a=m;b=n;int c = a*b;System.out.println("c= "+c);}}class TrialDemo
2
{ public static void main(String arg[]){ trial t = new trial();t.cal(8,5);}}

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->