I wanted to verify the way I\'m using methods of composited and protected object, is correct or not. Here putting sample code where I\'m accessing method of class A using ob