Question: I have two variables with a height and width value, like so:

```
var height = 1080
var width = 1920

```

I know I'm about to get the ratio by doing `width/height` which gives me something like this: `1.7794253938832252`

The problem I'm having is I want to get the aspect height/width, ultimately I want to get `16:9` or `3:2` purely based on the height and width values of an image. I don't want to resize it, I just want to know what it should be based on the values of height and width. 

How would I calculate this?

Answer: 
You need the `getX` within the parent class, but you don't have information enough to implement this method there. 

You can declare this class as `abstract` and mark the method with `abstract` as well. Doing that, you are handing the responsibility of method implementation over its subclasses and preventing from parent field declaration.

If the `A` doesn't describe any state (only actions/methods), you should consider replacing it with an interface. At the current state, it is the case.
You could make the parent class abstract, eliminate the property in the parent class, make getX() abstract, and then leave print() as concrete. Then just use the concrete implementation of getX() in the child class.