Complete the following java program. class A{ int alpha; int beta; public A(int alpha, int beta){ this.alpha = alpha; this.beta = beta; } public…
Complete the following java program.
class A{
int alpha;
int beta;
public A(int alpha, int beta){
this.alpha = alpha;
this.beta = beta;
}
public void display(){
System.out.println("Alpha"+alpha+ "\nBeta"+beta);
}
}
class Gamma extends A{
________________________
________________________
________________________
________________________
}
@override
public void display(){
________________________
________________________
}
}
public class main{
public static void main(String[]args){
Gamma g = new Gamma(3,30,10);
g.display();
}
}From the BCC Assistant Programmer (CSE) February 2021 – Written (BUET) exam, question 18 of 20.
More from this paper
- Previous: Write a function in Python programming language which takes a filename as a parameter and prints the first 10 lines of the file.
- Next: What is a weak entity in data modeling using the entity relationship model? Find any weak entity and its identifying relationship for the…
- All questions in BCC Assistant Programmer (CSE) February 2021 – Written (BUET)