zainaamir087
zainaamir087 zainaamir087
  • 18-05-2021
  • Computers and Technology
contestada

What is Inheritence in computer science? Explain in your won words with examples.

Respuesta :

09puciarka 09puciarka
  • 18-05-2021

Answer:

Inheritance is when one class or script, inherits the properties and methods of another class. They can be re-used which makes it useful. This is why there are parent classes and child classes. Child classes inherit the properties of the parent class. An example is when a "car", "truck" are subclasses of a class called vehicle. Allowing you to make more vehicle using the same parent class.

Hope this makes sense!

Answer Link

Otras preguntas

Each year Albuquerque, New Mexico, has a ho air balloon festival during which people can obtain rides in hot air balloons. Suppose part of the Diaz family goes
Do some eukaryotes reproduce asexually
Are 2/3 and 5/6 equivalent ratios. Justify your answer
mr. smith is on a trip.on the first day he travelled 2/5 of the trip, and on the second day he travelled another 1/3. what fraction of thw trip did he travel in
Jane drinks 275 milliliters of juice from a 1 liter container. How much juice is left
Each year Albuquerque, New Mexico, has a ho air balloon festival during which people can obtain rides in hot air balloons. Suppose part of the Diaz family goes
A(n)________is what your body does in reaction to a stimulus.
How many bones does a full grown male have in his body?
what makes the British rule over India possible ?
What are 3 figurative language's in the poem "on the grasshopper and the cricket"by john keats