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.
Read moreCan a abstract class have static method?
Yes, of course you can define the static method in abstract class . you can call that static method by using abstract class,or by using child class who extends the abstract class. Also you can able to call static method through child class instance/object.
Read moreWhat is abstract class property?
An abstract property declaration does not provide an implementation of the property accessors — it declares that the class supports properties, but leaves the accessor implementation to derived classes . The following example demonstrates how to implement the abstract properties inherited from a base class.
Read moreCan abstract class have variables?
An abstract class may contain non-final variables . Type of variables: Abstract class can have final, non-final, static and non-static variables.
Read moreCan abstract class have property?
An abstract class not only contains abstract methods and assessors but also contains non-abstract methods, properties, and indexers .
Read moreCan abstract class have property?
An abstract class not only contains abstract methods and assessors but also contains non-abstract methods, properties, and indexers .
Read moreWhat is abstract class property?
An abstract property declaration does not provide an implementation of the property accessors — it declares that the class supports properties, but leaves the accessor implementation to derived classes . The following example demonstrates how to implement the abstract properties inherited from a base class.
Read more