public abstract class Carriage protected int weight public class Conta

1
2
3
4
5
6
7
8
public abstract class Carriage
{
protected int weight;
}
public class Container extends Carriage
{
weight=200;
}