derive, interface, abstract etc.. etc..
hi there
i most probably know the answer to this one, but it has been long since i have looked at notes etc... plus its on a different platform - but i guess the termonology is the same
anyway
what are things like abstract classes and what do ppl mean by "derived" classes etc...
i know what an interface is - its a "standard" type of class, which has methods...when implemented into another class, it copies over the interfaces methods
and the interface cannot be made of an instance(?)
thanks :) - ps some samples would be great :)
Re: derive, interface, abstract etc.. etc..
An "abstract" class is a class that contains functionality that will be inherited from other classes. An abstract class cannot be instantiated, it can only be inherited.
A "derived" class is a class that inherits form another class. If I have 2 classes (A and B) A is my abstract class or Base Class and B inherits all of the functionality of class A. B is said to be "derived" from class A.