If there exists a class named Person and one wants to create a new class named Student based on the Person class, what code segment below shows the correct way to do so?

a. Public Class Student
Inherits Person
b. Public Class Student
Extends Person
c. Public Class Student Inherits From Person
d. Public Class Student :Person


a. Public Class Student
Inherits Person

Computer Science & Information Technology

You might also like to view...

Floating point numbers are represented in memory by a(n) [ mantissa ] and a(n) [ exponent ].

What will be an ideal response?

Computer Science & Information Technology

Show the printout of the following code:

```#include using namespace std; void swap(int a[]) { int temp = a[0]; a[0] = a[1]; a[1] = temp; } int main() { int a[] = {1, 2}; swap(a); cout << "a[0] = " << a[0] << " a[1] = " << a[1] << endl; return 0; } ```

Computer Science & Information Technology

After using the chkdsk utility via a command prompt running from the Windows installation DVD, you receive a message that says "Failed to transfer logged messages to the event log with status 50". What does this message mean?

A. The disk has been fixed, but recoverable errors still remain. B. The disk cannot be fixed using the chkdsk utility. C. The chkdsk run has completed, but does not have the ability to write to the event log in this mode. D. The chkdsk run has completed, but the disk is failing.

Computer Science & Information Technology

On a chart created in Excel, the horizontal axis is called the ____.

A. x-axis B. y-axis C. data marker D. legend

Computer Science & Information Technology