Interface vs Abstract Class

Abstract classes
Abstract class is class which contain one or more abstract methods, which is implemented by sub classes. An abstract class can contain no abstract methods but also containe mehtod with body. Abstract classes are useful in a situation when some general methods should be implemented and specialization behavior should be implemented by subclasses.Abstract class can contain private as well as protected members.
When to use Abstract Class-If we have a base class where all the classes will perform the same function, then we can define that in our Abstract class. If you plan on updating this base class throughout the life of your program, it is best to allow that base class to be an abstract class. Because you can make a change to it and all of the inheriting classes will now have this new functionality.

Interface
Interface is extremely useful when you don’t want a big hierarchical type framework. As interfaces are implicitly abstract, they cannot be directly instantiated except when instantiated by a class which implements the said interface. The class must implement all of the methods described in the interface, or be an abstract class. An Interface can only have public members. A class implementing an interface must implement all of the methods defined in the interface, while a class extending an abstract class need not implement any of the methods defined in the abstract class.Maintainability–if you want to add a new feature (method) in its contract, then you must implement those method in all of the classes which implement that interface. However, in the case of an abstract class, the method can be simply implemented in the abstract class and the same can be called by its subclass.

When To use interface – Interfaces are useful when you do not want classes to inherit from unrelated classes just to get the required functionality.It is used where there of chances adding new method in future. Interfaces are more used to set standards. interface gave merely a specification,nothing implemented for any standalone project which can be changed at will its more design flexible and it can be utilized to model multiple inheritance.

Ref – http://www.interview-questions-java.com/java-questions/java-abstract-class-and-interface-interview-questions

kick it on DotNetKicks.com

Shout it

pimp it

Pin it

Amazing List of Jquery Resources

jquery

I am writing this post as an extension to my previous post
10 most Useful resources for jQuery across the web which got an overwhelming response from the people. I recently found out some more good links. Also including the links which some readers on the previous post suggested.

So here are the additional new links:

  1. The following link is an amazing look up for all kinds of small tasks in jquery.
    jQuery HowTo’s
  2. Then we have 2 more How to in Jquery

  3. JQuery HowTo
  4. http://msmvps.com/blogs/luisabreu/archive/tags/JQuery/default.aspx
  5. VisualJquery.This link provides the information about any jquery methods with examples in a very interactive way.Its an amazing reference for Jquery methods.
  6. jQuery BlockUI Plugin: Jquery implementation for the modal popup. Its a jquery plug in named blockUI and is very popular among the developers.
  7. JQuery Tools Scrollable:A plugin to Scroll the HTML like and eye candy.
  8. Impromptu: Showing beautiful message boxes in Asp.Net web forms using JQuery Impromptu
  9. jQuery Cycle Plugin: The jQuery Cycle Plugin is a lightweight slideshow plugin. Provides amazing UI effects.
  10. Now we have client side implementation of Gridview paging using Jquery. The code demonstrates the use ajax() method of jquery receiving the JSON data from asp.net as well. Powerful practical learning for jquery beginners.

  11. jQuery & asp.net :- How to implement paging,sorting and filtering on a client side grid using asp.net,jTemplates and JSON
  12. And last but the most Important one

  13. The Ultimate Jquery List: Ultimate list of all Jquery resources

kick it on DotNetKicks.com

Shout it

pimp it

Open Source Flash Charts

We frequently require flash charts to present data in an effective way on our websites. for this purpose we can use paid charting controls as provided by ComponentArt or Telerik.

What if we get good effect with an open source control?

Open Flash Chart
Recently came across this open source Flash charting control.I found the UI effect as quite impressive.

It provides all types of commonly used charts like
# Bar Chart
# 3D Bar Chart
# Glass Bar Chart
# Fade Bar Chart
# Sketch Bars
# Area Chart
# Area Chart – 2
# Bars + Lines
# Pie Chart
# Pie Chart Links
# Scatter Chart
# Mixed Scatter
# High Low Close
# Candle

ASP.NET Integeration
The control come with a .NET Helper classes which allows us to integrate the charts easily with our asp.net web sites.
Library and Tutorials can be found here.

Hope this is useful to developers. Please drop a comment if you find the article useful or for any further queries.

kick it on DotNetKicks.com

Shout it

pimp it