Here is an example of inheritance in Java:
```java
class Employee {
String name;
int id;
public Employee(String name, int id) {
this.name = name;
this.id = id;
}
}
class Programmer extends Employee {
String language;
public Programmer(String name, int id, String language) {
super(name, id);
this.language = language;
}
}
```
Here Employee is the base/super class and Programmer is the derived/sub class that inherits from Employee. Programmer extends Employee and uses super() to pass values to the Employee constructor.