Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How to define an Interface?
How to define an Interface?
✍: Guest
In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface.
Emaple of Interface:
public interface sampleInterface {
public void functionOne();
public long CONSTANT_ONE = 1000;
}
2012-05-24, 2773👍, 0💬
Popular Posts:
Can you prevent a class from overriding ? If you define a class as “Sealed” in C# and “NotInheritab...
What is the result of using Option Explicit? When writing your C program, you can include files in t...
What print out will the folloging code produce? main() { char *p1=“name”; char *p2; p2=(char*)malloc...
What is XSLT? XSLT is a rule based language used to transform XML documents in to other file formats...
What is ISO? ISO 9000 is a family of standards for quality management systems. ISO 9000 is maintaine...