Given the following,
1. interface Base {
2. boolean m1 ();
3. byte m2(short s);
4. }
Which code fragments will compile? (Choose all that apply.)
interface Base2 implements Base { }
abstract class Class2 extends Base {
public boolean ml() { return true; } }
abstract class Class2 implements Base { }
abstract class Class2. implements Base {
public boolean m1() { return (true); } }
class Class2 implements Base {
boolean m1( ) { return false; }
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment