Anonymous

What Is Java Generalization/Inheritance?

3 Answers

Anonymous Profile
Anonymous answered
Inheritance - is when object inherits all the properties of the another object

eg. Mountain bike is a bike, but with more/less gears therefore a mountain bike has all the properties of a bike but with an additional property.
Florio Potter Profile
Florio Potter answered

Generalization is the process of extracting shared characteristics from two or more classes, and combining them into a generalized superclass. Shared characteristics can be attributes, associations, or methods.

In object-oriented programming, the concept of IS-A is a totally based onInheritance, which can be of two types Class Inheritance or Interface Inheritance. ... Wherever you see an extends keyword or implements keyword in a class declaration, then this class is said to have IS-A relationship.

CodeAvail- Online Computer Science Assignment
help

Answer Question

Anonymous