Select the correct option to test your answer:
Computer
Inheritence
Difficulty: Medium
What will be the output of the following Java program? abstract class A { int i; abstract void display(); } class B extends A { int j; void display() { System.out.println(j); } } class Abstract_demo { public static void main(String args[]) { B obj = new B(); obj.j=2; obj.display(); } }
More Computer Questions
To start a list at the count of 3, use 1. <ol begin="3"> 2. <ol list="3"> 3. <ol start="3"> 4. <ol num="3">
Which of the following will run without errors?
In C, how do you declare an array of pointers to integers?
Which of the following is the correct result for the given statement in the C#.NET statement given below? p = q struct employee { private int employee id; private string city; } employee q = new employee(); employee p; p = q;
A good identifier is which of the following?