Is it possible? Even though A is abstract, you can receive parameters of type A (which, in this case, would be objects of type B ). You cannot really pass an object of class A , though, since A is abstract and cannot be instantiated.
Is it possible? Even though A is abstract, you can receive parameters of type A (which, in this case, would be objects of type B ). You cannot really pass an object of class A , though, since A is abstract and cannot be instantiated.