Commit 75918697 authored by updjx's avatar updjx

changing boolean method name to noParameterDeclaration

removed some comments and changed attributeKill to valid
parent 92b92b46
class AttributeKill {
public A objectA;
......@@ -11,9 +10,6 @@ class AttributeKill {
objectA = null;
/* A objectA = new A();*/
/*should be null (not intiateated)*/
int a = objectA.atr;
}
......
......@@ -2,23 +2,16 @@
* Call without Parameter to Method
* error: variable a is already defined in method test(int)
*/
class BooleanSystemPrint {
class NoParameterDeclaration {
public static void main(String[] args) {
BooleanSystemPrint testObj = new BooleanSystemPrint();
/*there is no parameter given here*/
testObj.test();
}
public void test (int i) {
int a = i;
/* Boolean a = true;
System.out.println(a);*/
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment