Inheritance (is-a) relationships are derived child classes that inherit attributes and methods from their parent class. Composition (has-a) relationships are classes whose attributes are comprised of other classes. Each relationship has its advantages and disadvantages. See the link below for best uses of each.
For example:
class Animal { }
class Dog extends Animal { }
This means Dog IS-A animal
2. HAS-A simply means reference
For example:
class Nip { }
class Dog { private Nip nip;}
This means Dog HAS-A Nip
Hope this helped!! :)
Answer:
- John is using available and renewable resources.
Explanation:
Economics is primarily associated with the allocation of limited resources for the production of goods and services and the distribution as well as consumption of these goods and services.
As per the question, John's use of economics is reflected by his 'use of limited available and renewable resources'(apple orchard) to produce goods(in the form of 'Pies') for distribution and consumption('selling them in the market'). Thus, the land(orchard), labor(John himself), capital(his time and money in making pies from apples) act as the factors of production in this economic activity.
Answer:
Marisa
Explanation:
The listing agreement acts as the agency agreement between the seller and the licensee, so Marisa is Joe's agent and representative.