PLZ help with the following: Consider the following class For each of the following methods, indicate if it can or cannot be legally inserted in place of the comment //Method Here. If a method cannot be inserted, briefly explain why not.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

PLZ help with the following:

Consider the following class

For each of the following methods, indicate if it can or cannot be legally inserted in place of the comment //Method Here. If a method cannot be inserted, briefly explain why not.

 

YES: it can
be inserted
Method
OR
If it cannot be inserted,
NO: it cannot | why not?
be inserted
void m(int i) throws Exception{}
void m(char c) throws Exception{}
public void m(int i){ }
protected void m(int i) throws
Exception{}
Transcribed Image Text:YES: it can be inserted Method OR If it cannot be inserted, NO: it cannot | why not? be inserted void m(int i) throws Exception{} void m(char c) throws Exception{} public void m(int i){ } protected void m(int i) throws Exception{}
class Basse {
protected void m(int i) {
// some code
}
}
public class Child extends Base {
// Method Here
}
Transcribed Image Text:class Basse { protected void m(int i) { // some code } } public class Child extends Base { // Method Here }
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
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,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage