0

abstract class

Are Datafields of a abstract method public or private to extending classes?

11th Jan 2021, 5:49 PM
Manfred h
3 Respostas
+ 2
Sanoj yes abstract methods must be implemented in their immediate concrete child class.
11th Jan 2021, 8:31 PM
Avinesh
Avinesh - avatar
+ 1
they are public to extending classes.. an abstract method can be just the signature or can be implemented meaning it can have a body.. this is then inherited by the sub class exactly the same way you would inherit a method from a super class.
11th Jan 2021, 6:35 PM
D_Stark
D_Stark - avatar
0
so the only reason to make an abstract class is to make it nessesary to override the abstract methods in the subclass?
11th Jan 2021, 8:10 PM
Manfred h