<filename>core-java-modules/core-java-concurrency-advanced/src/main/java/com/baeldung/concurrent/volatilekeyword/SharedObject.java
package com.baeldung.concurrent.volatilekeyword;


public class SharedObject {
    private volatile int count=0;

    void incrementCount(){
        count++;
    }
    public int  getCount(){
        return count;
    }
}
