title: Get Class of Custom Scala Object
body: <p>I have created a class called square extends an abstract class called shape. When I call getClass on square I'm getting: class A$A101$A$A101$square rather than just square. </p>
  
  <p>I want to call getClass(or a similar function) and receive a value that allows me to check if o: Object == square. </p>
  
  <p>Any advice is appreciated. Thanks </p>