This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Aircraft( | |
| private val liftMechanism: Flyable, | |
| private val propulsion: Movable | |
| ): Flyable, Movable { | |
| override fun fly() { | |
| liftMechanism.fly() | |
| } | |
| override fun move() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.esbati.keivan.livelocation; | |
| import android.Manifest; | |
| import android.arch.lifecycle.LiveData; | |
| import android.content.Context; | |
| import android.location.Location; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.os.SystemClock; | |
| import android.support.annotation.NonNull; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.Context; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentTransaction; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import java.util.ArrayDeque; | |
| import java.util.Queue; | |
| public class MainActivity extends AppCompatActivity { |