Define the instance method `inc_num_kids` for `PersonInfo`.

`inc_num_kids` increments the member data `num_kids`.

Sample output for the given program with one call to `inc_num_kids`:

```
Kids: 0
New baby, kids now: 1
```

Answer :

The given requirement is to define an instance method called `inc_num_kids` for the class `Personlnfo`. This method should increment the member data `num.kids` by 1.

Here is an example implementation of the `inc_num_kids` method:

```java

public class Personlnfo {

private int numKids;

// Constructor and other methods

public void inc_num_kids() {

numKids++;

}

// Other methods and fields

}

```

In the sample output provided, the initial value of `numKids` is 20. After calling the `inc_num_kids` method once, the value of `numKids` is incremented by 1, resulting in a new value of 21. The output states "Kids 20 New baby, kids now: 1" to indicate the original value of `numKids` (20) and the updated value after incrementing (21).

Learn more about Java classes here:

https://brainly.com/question/31502096

#SPJ11