Jinseong Jeon | f1d3d509 | 2017-10-06 10:56:19 -0700 | [diff] [blame] | 1 | // Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file |
| 2 | // for details. All rights reserved. Use of this source code is governed by a |
| 3 | // BSD-style license that can be found in the LICENSE file. |
| 4 | package uniquemembernames; |
| 5 | |
| 6 | public abstract class BaseCls { |
| 7 | |
Stephan Herhut | f17b350 | 2017-10-27 11:26:43 +0200 | [diff] [blame] | 8 | protected int c; |
Jinseong Jeon | f1d3d509 | 2017-10-06 10:56:19 -0700 | [diff] [blame] | 9 | protected double f2; |
| 10 | |
Stephan Herhut | f17b350 | 2017-10-27 11:26:43 +0200 | [diff] [blame] | 11 | protected abstract int c(); |
Jinseong Jeon | f1d3d509 | 2017-10-06 10:56:19 -0700 | [diff] [blame] | 12 | |
| 13 | protected int foo() { |
Stephan Herhut | f17b350 | 2017-10-27 11:26:43 +0200 | [diff] [blame] | 14 | return c * (int) f2; |
Jinseong Jeon | f1d3d509 | 2017-10-06 10:56:19 -0700 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | protected double bar() { |
Stephan Herhut | f17b350 | 2017-10-27 11:26:43 +0200 | [diff] [blame] | 18 | return c * f2; |
Jinseong Jeon | f1d3d509 | 2017-10-06 10:56:19 -0700 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | } |