Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8830245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:01:48+00:00 2026-06-14T08:01:48+00:00

Please refer to the post : Display checkbox inside Flash List Control ? (Similar

  • 0

Please refer to the post :
Display checkbox inside Flash List Control ? (Similar to itemrendering in Flex)

As usual, i always get somewhat confused with the significance of Interface.

So in the above link, i still don’t get what is the significance of specifying ICellRenderer

Why can’t instead of :

  public class CustomCellRenderer extends CheckBox implements ICellRenderer 

I can write

   public class CustomCellRenderer extends CheckBox  

I tried to play with above line, but it doesnot work. I MUST specify ICellRenderer.

In my opinion, Interfaces, just tell a class to follow a certain rule of using functions. How can it stop the working of the class ( if i have used all the necessary functions, but not implemented the required interface )

Thnx in advance.
Vishwas.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:01:50+00:00Added an answer on June 14, 2026 at 8:01 am

    Due to checks in other code on your objects not implementing an interface can cause a failure. However this is the advantage of interfaces as well, your class doesn’t need to extend from something to implement an interface, so it can arbitrarily extend from any class but implement a particular interface that means it has some other functionality outside of the things it got from it’s inheritance chain. So Adobe (or whoever) codes something up like:

    if(argumentObject is ICellRenderer)
    {
       var icr:ICellRenderer = argumentObject as ICellRenderer; //cast so code completion can work
       icr.data = data; //do some stuff on the object that only an ICellRenderer can do
    }
    

    Let me know if this explanation isn’t clear, it took me a long time to come to grips with interfaces and their use, but now I’m a huge advocate.

    Supporting Arguments

    Insofar as inheritance itself is concerned, just for clarity the concept is that if something is just like something else but with extra properties (nouns) or actions (verbs) associated with it, you need not re-write the common parts.

    To use a common example say you have a class Animal (properties such as isAlive, actions like reproduce). Now say you want to make a class for SexualAnimal and AsexualAnimal and in the reproduce method for the SexualAnimal takes an argument whereas the one for AsexualAnimal doesn’t (SexualAnimal would have an overloaded version of the reproduce method and would override the default throwing an error). Okay so that’s all well and good now say somewhere down the line we get to Birds, now we have a choice on how to handle flight, we can A add flight as a boolean somewhere in the inheritence chain or B create an interface for flight (perhaps we aren’t concerned with where in the inheritence tree an Animal is we just want to know that it can fly and therefore has certain properties like altitude and actions like takeFlight). Rather than check for every individual property that you want to possibly use on a flying thing you can just check is IFlyingThing.

    Another way to see this is, as a programmer I can write up an Interface give it to another team and we can both operate based on the “contract” established in the Interface. For example say I need to access a database to do some operations, but I don’t know which database solution their going to go with long term. So I write an interface for what I need the DB to be able to fetch Y data with X argument, now I’m free to write the rest of my code under the assumption that I supply X and you give me Y, no matter what the underlying implementation my code will work.

    For a more formal reference to uses of interfaces see: http://en.wikipedia.org/wiki/Design_Patterns

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please refer to this post. I have become able to configure my web.config file
Please refer my previous post here . I did changes accordingly but getting error.
Please refer to Get PDF hyperlinks on iOS with Quartz It explained an algorithm
I refer to this page: Post array of multiple checkbox values <input type=checkbox class=box
Please refer the attached screenshot. I have an array of the checkbox and a
(Please refer to SQLFiddle for a working example of this post) I have a
Please refer my this post- how to change TTNavigator (for a web url) bottom
Please refer to code. <%= form_tag(:action => create_user, :method => post) do%> <p><label for=first_name>First
Please refer to the following codes : <div id=message-1 onclick=javascript:showresponddiv(this.id)> </div> <div id=respond-1 style=display:none;>
Please refer the fiddle http://jsfiddle.net/HCqsM/5/ Here By clicking the 'click' link for the first

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.