October 2008
Beginner to intermediate
680 pages
16h 48m
English
Recall that a class, as a type, is an abstraction of a real-world object from which some of the unessential details have been omitted. We can therefore see that an abstract class is more of an abstraction than a concrete class because with an abstract class we omitted the details for how one or more particular behaviors are to be performed.
Now, let's take the notion of abstractness one step further. With an abstract class, we can avoid programming the bodies of methods that are declared to be abstract. But what about the fields declared in an abstract a class? In our Course example, we went ahead and prescribed the data structure (fields) that we thought would be needed generally by all types of courses:
private string courseName; ...
Read now
Unlock full access