Mr Gemechu was famous rural area farmer of south west shoa zone. He got the habit of farming from his father Tolera Hingabu and the farming style was traditional. Recently, Mr Gemechu called his two sons and told them that they have to take over all land to plough, harvest, and collect the crops in a secured way because he has a fear of government official as he was credited with the government loan which has not been payed yet. Now, the two brothers are shared the lands and start ploughing harvesting, and collecting in both traditional and modern farming mechanism through the man called Hata'u Hunduma

1 Based on the above paragraph please try to answer the following question

A) Do you think that the above paragraph has the concept of inheritance? If yes please list and

define the type of inheritance you found in the above reading.

B) Mr. Gemechu told his sons that they have to use the land securely. Which one of the pillar principles of OOP is used to best describe this idea? Why?

2. Select the class, methods, and attributes that best fit the above reading and enable you to write the java programming code

3. Please write simple java code by using the class and class members you have selected in question number two (hint please use the concept of polymorphism, inheritance and encapsulation).

A) Yes, the concept of inheritance is present in the paragraph. The type of inheritance found in the above reading is generational inheritance, where Mr. Gemechu passed down his knowledge and farming practices to his sons.

B) The pillar principle of Object-Oriented Programming (OOP) that best describes Mr. Gemechu's idea of using the land securely is encapsulation. Encapsulation ensures that the data (in this case, the land and crops) is protected and can only be accessed through specific methods, thus maintaining security.

2. Class: Farmer
Attributes: land, crops, sons
Methods: plough(), harvest(), collect()

3. Java code:

```java
public class Farmer {
private String land;
private String crops;
private String[] sons;

public Farmer(String land, String crops, String[] sons) {
this.land = land;
this.crops = crops;
this.sons = sons;
}

public void plough() {
System.out.println("Ploughing the land...");
}

public void harvest() {
System.out.println("Harvesting the crops...");
}

public void collect() {
System.out.println("Collecting the crops...");
}

public static void main(String[] args) {
String[] sons = {"Son1", "Son2"};
Farmer farmer = new Farmer("Farmland", "Wheat", sons);

farmer.plough();
farmer.harvest();
farmer.collect();
}
}
```