Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass {
- public int a;
- public int b;
- public int myFunction(int param) {
- return a*a+b*b+param;
- }
- public MyClass(int a, int b) {//constructor: no return type
- this.a=a;
- this.b=b;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement