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
Please help with this coding question
snow_tiger [21]
Answer: the variable called errors is tested to see if it is less than it equal to 4
8 0
3 years ago
Read 2 more answers
Están construidas con otros lenguajes de programación que, gracias a ellos, podemos ofrecer a los usuarios la posibilidad de cam
Masja [62]

Answer: Me encantaría ayudar pero esto es un poco difícil

Explanation:

6 0
3 years ago
While loop for python<br> Plz help!!!! It’s due today
DIA [1.3K]

Loop for python and Java developer ghjfgj

6 0
3 years ago
A slide can have which of the following?
mojhsa [17]
What are the choices.
5 0
4 years ago
Read 2 more answers
Write a application that can determine if a 5 digit number you input is a palindrome. If the number is a palindrome then print "
notsponge [240]

Answer:

Written in Python:

num = int(input("Number: "))

strnum = str(num)

if len(strnum) !=5:

    print("Length must be 5")

else:

    if(strnum[::-1] == strnum):

         print("The number is a palindrome.")

    else:

         print("The number is NOT palindrome.")

Explanation:

This prompts user for input

num = int(input("Number: "))

This converts user input to string

strnum = str(num)

This checks the length of the string

if len(strnum) !=5:

    print("Length must be 5") If length is not 5, this prompt is printed

else:If otherwise

    if(strnum[::-1] == strnum): The compares the string reversed with the original

         print("The number is a palindrome.") If both are the same, this line is executed

    else:

         print("The number is NOT palindrome.") If otherwise, this line is executed

4 0
3 years ago
Other questions:
  • Jake is photographing his pet puppy. He wants to preview the image the camera will capture. What part of the camera that is insi
    6·2 answers
  • Given the Query Data Type, which of the following is incorrectly matched with the corresponding Storage Data Type?
    15·1 answer
  • Explain how you give users keyboard access to a text box
    6·1 answer
  • PLZ HURRRYYYYYY
    15·1 answer
  • Which of these identifies the intersection of row 16 and column D?
    14·2 answers
  • What is the value of i printed? j = i = 1 i += j + j * 5 print("What is i?", i)
    11·1 answer
  • Two Smallest (20 points). Write a program TwoSmallest.java that takes a set of double command-line arguments and prints the smal
    7·1 answer
  • Data owners ensure that only the access that is needed to perform day-to-day operations is granted and that duties are separated
    10·1 answer
  • How to do this question , please answer quickly , I’ll give branliest
    14·1 answer
  • Who innovated an aeroplane? ​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!