I heard that we can apply pattern matching in Scala without using case classes. Also, I do not mean just identifying the actual implementation class but also extracting various values from the object. Is it really possible? How can we achieve this?
I could not find an accepted answer that points to my solution in any of the question posted previously on similar topics. Hence, I decided to put up a new question.