what is wrong with the following sample code?

Which of the following describes what is wrong with the following sample code?
public class MyActivity extends Activity{
public void onCreate(Bundle myBundle){
foo( );
} }

Which of the following describes what is wrong with the following sample code?
public class MyActivity extends Activity{
public void onCreate(Bundle myBundle){
foo( );
} }

A.
The method onCreate must be private.

B.
A developer cannot extend Activity.

C.
A call is missing to super.onCreate(mybundle).

D.
The class MyActivity must be private.

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *