1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Andrew [12]
3 years ago
11

Define inheritance. give an example

Computers and Technology
1 answer:
Nezavi [6.7K]3 years ago
3 0
A class can be defined<span> using another class as a foundation. In object-oriented programming terminology, one class can </span>inherit<span> fi elds and methods from another. An object that inherits from another is called a subclass, and the object it inherits from is called a superclass. A subclass extends the superclass.</span>
You might be interested in
Under normal operations, cisco recommends that you configure switch ports on which vlan
larisa86 [58]

 

You can configure switch ports on default VLAN under normal operations. Cisco switches always have VLAN 1 as the default VLAN, which is required for many decorum communications between switches like spanning-tree protocol for example. It is obligatory not to delete or even change the default VLAN.

 

 





3 0
3 years ago
Write a switch statement that tests the value of the char variable response and performs the following actions: if response is y
Yuri [45]

Answer:

# include<iostream>

#include<conio.h>

using namespace std;

main()

{

char choice;

cout<<"Enter your Choice"

cin>>choice;

switch (choice)

{

case 'y':

cout<<"Your request is being processed";

break;

case 'n':

cout<<"Thank you anyway for your consideration";

break;

case 'h':

cout<<"Sorry, no help is currently available";

default:

cout<<"Incorrect Choice";

break;

}

getch();

}

Explanation:

In this program, a character type variable named as choice is selected for the input. This choice variable can be y, n or h as per requirement of the program. Switch statement is chose for the selection of output statement with respect to its mentioned input.  This program shows the output statement for above mentioned characters. In case of any other character the program returns Incorrect choice and ends.

7 0
3 years ago
What is a variable? Why is it helpful in programming?
Komok [63]

Answer:

Variables can represent numeric values, characters, character strings, or memory addresses. Variables play an important role in computer programming because they enable programmers to write flexible programs. Rather than entering data directly into a program, a programmer can use variables to represent the data.

Explanation:

3 0
3 years ago
Which of the following is an example of plagiarism? A. Listing someone as an author who did not actually contribute to the publi
Nata [24]

Answer:

C. <em>Presenting someone else’s ideas or words and claiming them as one's own.</em>

Explanation:

The correct option is <em>C. Presenting someone else’s ideas or words and claiming them as one's own. </em>

The definition of <em>Plagiarism </em>indicates that stealing and passing off ideas or words created and / or developed by others and pretending or signifying that such words or ideas are one´s one is considering an act of plagiarism.

3 0
3 years ago
Calculates the current that feeds a washer toy having a 10 ohm resistor and a battery operated with a potential difference of 30
andreev551 [17]

Explanation:

Using Ohm's Law and a bit of substitution, we can solve for current.

5 0
3 years ago
Other questions:
  • how do i create an advanced search using the search criteria in the range K2:S3 and the inventory data where the results will be
    8·1 answer
  • When a cells number format is “time” it will show a value in what format
    5·1 answer
  • Which are emotional effects of anxiety? Check all that apply.
    10·2 answers
  • C. Compare Mainframe and Minicomputers with their key features<br><br><br><br>plzzz help ​
    12·1 answer
  • Software that tries to monitor and track the way you use your computer.​
    10·2 answers
  • What are possible penalties if a designer is caught breaking copyright laws?
    13·1 answer
  • Which code segment results in "true" being returned if a number is even? Replace "MISSING CONDITION" with the correct code segme
    9·1 answer
  • 2.20 Write an expression involving a three-letter string s that evaluates to a string whose characters are the characters of s i
    6·1 answer
  • Keely has an automation tool in place that runs a number of different processes for her and has for the last two years. All of a
    8·1 answer
  • In the earliest stages of human history, what was the only medium?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!