Dear Java Programmer:
 
I have an interface with a method declared as such
“void newMethod();”
 
I implement this method in the concrete class as the following:
 
public void newMethod{
System.out.print(“New Method implemented in concrete class.);
}
 
In the Main class I create a new object of this concrete class and call 
newMethod.
 
concreteclassObject.newMethod;
 
I receive an error message which says void type not allowed here?  I would 
appreciate your help on this?  Thank you.

Alex


      
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to