package com.example.myapplication;

import android.os.Parcel;
import android.os.Parcelable;

class parcleObject implements Parcelable{
    private String name;
    protected parcleObject(Parcel in) {
        this.name = in.readString();
    }
    public parcleObject(String name){
        this.name = name;

    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static final Creator<parcleObject> CREATOR = new Creator<parcleObject>() {
        @Override
        public parcleObject createFromParcel(Parcel in) {
            return new parcleObject(in);
        }

        @Override
        public parcleObject[] newArray(int size) {
            return new parcleObject[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
    }
}
