Given: abstract class A{ int a; int b; } class B extends A{ int a; } O cannot make class A abstract can create an instance of both class A and class B class B must also be abstract O cannot make an instance of class A Given: interface B { void methodA(); static void methodB(); void hiethodC(){ } } methodC should not have a body O methodB should have a body methodB should not be static O both a and c

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
Given:
abstract class A{
int a;
int b;
}
class B extends A{
int a;
}
O cannot make class A abstract
can create an instance of both class A and class B
class B must also be abstract
O cannot make an instance of class A
Transcribed Image Text:Given: abstract class A{ int a; int b; } class B extends A{ int a; } O cannot make class A abstract can create an instance of both class A and class B class B must also be abstract O cannot make an instance of class A
Given:
interface B
{
void methodA();
static void methodB();
void hiethodC(){ }
}
methodC should not have a body
O methodB should have a body
methodB should not be static
O both a and c
Transcribed Image Text:Given: interface B { void methodA(); static void methodB(); void hiethodC(){ } } methodC should not have a body O methodB should have a body methodB should not be static O both a and c
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage