Friday, June 25, 2004

VJs Tip Of The Day - June 25th 2004

Interface vs Abstract classes

For Abstract class one method of the class must have an abstract method that means, it may have concrete methods...

Various access modifiers such as abstract, protected, internal, public, virtual, overrides etc are not useful in case of Interface but they are in case of Abstract classes

Class implementing Interface has to implement all the methods of the Interface, this is not required in case of Abstract classes

Interfacescannot have constructors and destructors like the way Abstract classes can...

Interface cannot contain a static method whereas an Abstract class can have...

There are few more points which I can recollect but I think that this is enough for a tip... If anyone needs more info do write back to me... :-)


* pure virtual method is a method which has just definition but not implementation...

PS: Many of us work on weekends, I don't think (current thought!!) that its a good practice doing that, atleast if you are being guaged on the basis of your willingness to work on weekends then its surely very bad... I am trying to start a movememt to abolish this social evil of working on weekends, so no tips on weekends...:-)
BONUS TIP: Spend time with your family this weekend... :-)

No comments: