Public class implements interface

I am taking my first crack at interfaces: I have superclass A which is a parent of class B, which implements interface C. I need to use class B to make 3 variable instances within class A. I think I will use interface C to make calculations based on the 3 variables. Where do you recommend that I declare and set values for the 3 variables if I need to output the values at the top, in superclass A?
I'm just a little unclear on pulling these objcts together... thanks in advance.

I am taking my first crack at interfaces: I have
superclass A which is a parent of class B, which
implements interface C. I need to use class B to make
3 variable instances within class A. I think I will
use interface C to make calculations based on the 3
variables. Where do you recommend that I declare and
set values for the 3 variables if I need to output the
values at the top, in superclass A?
I'm just a little unclear on pulling these objcts
together... thanks in advance. If your variables are going to be used by your superclass A then they had better be declared there. You can work with them whereever you want.
I'm not sure what you are saying about "...use interface C to make calculations based on the 3 variables." You can't do calculations inside an interface. Furthermore, if B extends A and implements C then A and C are going to be completely separate entities. Any reference to C, even if it is actually an object of type B, will not be able to use anything in A--unless you cast it to B, in which case there is no use in making an interface at all.
I probably just confused you, but oh well...
Jeff

Similar Messages

  • Internal class implementing interface extending abstract interface :P

    Confused ha? Yeah me too. RIght here it goes.
    Theres an abstract interface (abstractIFace) that has for example method1() method2() and method3(). There are two other interfaces iFace1 and iFace2 that extend abstractIFace. Still with me? :P iFace1 only uses method2() whereas iFace2 uses method1(), method2() and method3(). Internal classes implementing these are then used. The reason is so that when returning an object one method can be used that will return different types of objects. But this doesnt work. It says that all the classes in the abstractIFace must be used/implemented but I only want method2() in iFace1 and all in iFace2.
    Just say what the f*ck if this is too confusing cos i think it is and i did a crap job explaining!! :P

    public interface IFace {
        void method1();
        void method2();
        void method3();
    public class Test {
        private static class Class1 implements IFace {
            public void method1() {
                System.out.println("method1");
            public void method2() {
                System.out.println("method2");
            public void method3() {
                System.out.println("method3");
        private static class Class2 implements IFace {
            public void method1() {
                throw new UnsupportedOperationException();
            public void method2() {
                System.out.println("method2");
            public void method3() {
                throw new UnsupportedOperationException();
        public static IFace createObject(boolean flag) {
            return flag ? (IFace) new Class1() : new Class2();
    }

  • Class implementing interface using generics

    I have an interface that looks like this:
    public interface BinaryTree<T extends Comparable<? super T>> {
         public enum TraverseOrder { PREORDER, INORDER, POSTORDER }
         public boolean isEmpty();
         public boolean search(T key);
         public void remove ( T key ) throws TreeException;
         public void insert(T key) throws TreeException;
         public void print ( TraverseOrder order);
         public int getSize();
    }My shell class that implements it looks like this:
    public interface BinaryTree<T extends Comparable<? super T>> {
         public enum TraverseOrder { PREORDER, INORDER, POSTORDER }
         public boolean isEmpty(){
                      return true;
         public boolean search(T key) {
                      return true;
         public void remove ( T key ) throws TreeException {
         public void insert(T key) throws TreeException {
         public void print ( TraverseOrder order) {
         public int getSize() {
                        return 0;
    }Im getting 2 errors one being
    BST.java:1: > expected
    public class BST implements BinaryTree<T extends Comparable<? super T>> {
    and the other is an enum error. Im pretty sure the second enum error will be resolved by fixing the first error. Any help is apreciated. Thanks
    BLADE

    Yeah tottaly right but the code i posted is wrong sorry lets try one more time
    public interface BinaryTree<T extends Comparable><? super T>> {
         public enum TraverseOrder { PREORDER, INORDER, POSTORDER }
         public boolean isEmpty();
         public boolean search(T key);
         public void remove ( T key ) throws TreeException;
         public void insert(T key) throws TreeException;
         public void print ( TraverseOrder order);
         public int getSize();
    public class BST implements BinaryTree<T extends Comparable><? super T>> {
         public enum TraverseOrder { PREORDER, INORDER, POSTORDER }
         public boolean isEmpty(){
                      return true;
         public boolean search(T key) {
                      return true;
         public void remove ( T key ) throws TreeException {
         public void insert(T key) throws TreeException {
         public void print ( TraverseOrder order) {
         public int getSize() {
                        return 0;
    }

  • Inner static class implementing interface

    Hello,
    I have a sample program to test on reflections. here the code goes
    import java.lang.reflect.*;
    import java.awt.*;
    import java.lang.*;
    import java.io.*;
    public class SampleName {
       public static void main(String[] args) {
          NewClass b = new NewClass();
           System.out.println("Calling printModifiers");
           printModifiers(b);
             System.out.println("Calling printInterfaces");
           printInterfaces(b);
       static void printModifiers(Object obj){
              Class cl = obj.getClass();
              int mod = cl.getModifiers();
              if(Modifier.isPublic(mod ))
                   System.out.println("Public");
              if(Modifier.isPrivate(mod ))
                   System.out.println("Private");
              if(Modifier.isFinal(mod ))
                   System.out.println("Final");
              if(Modifier.isStatic(mod ))
                   System.out.println("Static");
              if(Modifier.isAbstract(mod ))
                   System.out.println("Abstract");
       static void printInterfaces(Object o) {
              Class c = o.getClass();
              String str = c.getName();
              System.out.println("name  " +str);
              Class[]  theInterfaces= c.getInterfaces();
              if(theInterfaces.length ==0)
                   System.out.println("no interfaces here ");
              else
                   for(int counter = 0; counter<theInterfaces.length;counter++)
                             String interfaceName = theInterfaces[counter].getName();
                             System.out.println("Interface Name :- " +interfaceName);
    static class NewClass implements newInterface {
    }i have an interface in t same folder as
    public interface newInterface
    }i get an error as below while compiling this java code
    SampleName.java:54: cannot resolve symbol
    symbol  : class newInterface
    location: class SampleName.NewClass
    static class NewClass implements newInterface {
                                      ^
    1 errorplease explain me what is the fault i am making and how can it be resolved.
    tnx

    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    The Gateway to Classpath Nirvana
    Setting the class path (Windows)
    How Classes are Found

  • Extend abstract class & implement interface, different return type methods

    abstract class X
    public abstract String method();
    interface Y
    public void method();
    class Z extends X implements Y
      // Compiler error, If I don't implement both methods
      // If I implement only one method, compiler error is thrown for not
      // implementing another method
      // If I implement both the methods,duplicate method error is thrown by 
      //compiler
    The same problem can occur if both methods throw different checked exceptions,or if access modifiers are different..etc
    I'm preparing for SCJP, So just had this weired thought. Please let me know
    if there is a way to solve this.

    Nothing you can do about it except for changing the design.
    Kaj

  • Class implementation for interface

    Hello,
    I am a beginner in ABAP Objects.
    In the coding of method if_swf_ifs_workitem_exit~event_raised of class CL_SWF_UTL_EXIT_NEW
    There is the instruction follow :
    *Get the workflow container
    irh_container ?= im_workitem_context-> get_wf_container()
    Im_workitem_context is interface type  "IF_WAPI_WORKITEM_CONTEXT"
    If I execute in debug mode I see the implemtation class of this interface (im_workitem_context)  is "CL_SWF_RUN_WORKITEM_CONTEXT"
    But where this information of implementation is defined ? (I saw nothing)
    Regards
    Christine
    Edited by: chris_75 on Sep 7, 2010 4:22 PM

    Interfaces allow to implement highly scalable object oriented applications.
    Interface is a kind of a template for a real class which forces this class to implement methods defined in an interface.
    The main characteristics of an interfaces are:
    - they DO NOT contain any implementations (so there is nothing like INTERFACE ... IMPLEMENTATION - they have only DEFINITIONS - implementations are within classes)
    - they have only PUBLIC sections.
    Why we need an interface. The answer is simple:
    We want to handle some objects uniformly from one application compotent, whereas these objects may behave differently inside.
    Example:
    Let's say we need to build a sorting program for numbers.
    The program would have an interface variable L_RIF_SORTER of an interface LIF_SORTER. LIF_SORTER has a method definition SORT with an C_TAB changing parameter.
    Sorting application would call the sorting algorithm as follows:
    L_RIF_SORTER->SORT( CHANGING c_tab = l_tab ).
    Now is the main point:
    We want to have 2 kinds of sorting algorithms implemented, let's say BUBBLE SORT and QUICK SORT.
    To do so, we implement 2 classes: LCL_BUBBLE_SORT and LCL_QUICK_SORT.
    Both classes implement interface using the statment INTERFACES in a public section.
    The user would have to choose the algorithm from an input field. Depending on the content of this field the sorting application would instantiate one class or the other using the statement:
    CREATE OBJECT l_rif_sorter TYPE (variable_with_class_name).
    THis is the point where ABAP gets to know the real object and its type behind the interface.
    This approach is generally called the STRATEGY PATTERN. See Wikipedia for this.
    I hope I answered your question.
    Regards,

  • Can a class implements more than one interface?

    Hello
    Can a class implements more than one interface?
    Thanks

    Of course, this doesn't mean that it won't be a problem though. If the two interfaces have methods with the same signature, but different return types, you won't be able to implement them together. I.E.
    interface InterfaceA {
      public int doSomething(String myString);
    interface InterfaceB {
      public String doSomething(String myString);
    // Now the classes
    // Gives error "Duplicate method doSomething(String) in type ClassA"
    public class ClassA implements InterfaceA, InterfaceB {
      public int doSomething(String myString) {
        System.out.println("A");
        return 0;
      public String doSomething(String myString) {
        System.out.println("B");
        return 0;
    // Gives error "The return type is incompatible with InterfaceB.doSomething(String)"
    public class ClassB implements InterfaceA, InterfaceB {
      public int doSomething(String myString) {
        System.out.println("A");
        return 0;
    // Gives error "The return type is incompatible with InterfaceA.doSomething(String)"
    public class ClassC implements InterfaceA, InterfaceB {
      public String doSomething(String myString) {
        System.out.println("B");
        return 0;
    }

  • Implementing interface views

    I have to add a main view to the portfolio items and integrate  the view WI_DMS of the web dynpro component DMS_DPR to the same. When I try to do it, it says  'WI_DMS does not implement a valid interface". Is there any way to implement the valid interface dynamically? PLease help.

    >i have been using ( implementing ) interfaces in the components, for example i used iwd_value_help. however i still have no clarity how WD framework is able to communicate with the component implementing interface iwd_value_help.
    Web Dynpro can create a component usage based upon the interface type alone.  This is very similar to normal ABAP OO when you create/get an instance of a class but only know the interface.  Basically this is polymorphism at the component level.
    >the basic question here is, what is wd framework, is it class implementing interfaces generated when we create views and other stuff. and this class( WD fw ) is going to call these implemented methods of the interface??
    Simple answer: yes, exactly as you describe.  Everything relates back to generated and local classes.  The framework can interact with them becuase all the generated classes implement SAP provide framework interfaces.

  • Derived class also implements interface?

    Hi guys,
    If a base class A implements an interface (e.g. Comparable), does a derived class of A also implement this interface (or is of this type e.g Comparable, if this is a more correct way to say it)??
    If so, would it be wrong to write "public class B extends A implements Comparable", because class A already implements it?
    I am aware of that class B will inherit methods from class B and that way have "compareTo()" method. But can objects of class B be plugged in for method parameter of Comparable ( someMethod(Comparable obj) )?

    LencoTB wrote:
    Hi guys,
    If a base class A implements an interface (e.g. Comparable), does a derived class of A also implement this interface (or is of this type e.g Comparable, if this is a more correct way to say it)??Yes. The way you said it is fine, although another way to say it is "Comparable is a base interface(or class) of derived class B"
    >
    >
    If so, would it be wrong to write "public class B extends A implements Comparable", because class A already implements it?Not necessarily, but it is unnecessary. The only reason you would do this is to specifically document that the class is changing the implementation of compareTo.
    >
    I am aware of that class B will inherit methods from class B and that way have "compareTo()" method. But can objects of class B be plugged in for method parameter of Comparable ( someMethod(Comparable obj) )?use "implements Comparable<B>"

  • Class implementing its own inner interface?

    Hi
    If I try to compile the following I get a "cyclic inheritance involving Data_set" compiler error on line 1:
        public class Data_set implements Data_set.Row
            public interface Row
                String column(final int a_index);
            public String column(final int a_index)
                return "something";
            public Row row(final int a_index)
                return new Row_impl();
            private class Row_impl
                implements Row
                public String column(final int a_index)
                    return "something else";
        }Is there any good logical reason why this should be disallowed, given that the interface is necessarily static and putting it inside the class seems like just a namespace issue that would involve no cyclic dependencies?
    Thanks
    Colin

    colin_chambers wrote:
    The Row component here only has meaning with respect to the Data_set container, so I do think that it makes sense to scope the Row name inside Data_set I respectfully disagree. Row is much more independent of a set of Rows than a DataSet is from Rows. A row can live on its own, a data set cannot. Your domain modeling is iffy at best.
    I would find it extra syntactic clutter to extract the row explicitly in these cases.You should never resort to a poor design to avoid "syntactic clutter", and it's quite likely that a proper design will reduce the clutter. My guess is that you've got a bad design through and through, and should consider maybe an inversion of control? Maybe what you're really looking for is a [Visitor pattern|http://en.wikipedia.org/wiki/Visitor_pattern]?
    public interface RowVisitor {
       void visitRow(Row row);
    public interface RowVisitable {
       void acceptRowVisitor(RowVisitor visitor);
    public class Row extends RowVisitable {
       public void acceptRowVisitor(RowVisitor visitor) {
          visitor.visitRow(this);
       //...other stuff
    public class DataSet implements RowVisitable {
       private final Collection<RowVisitable> children;
       public void acceptRowVisitor(RowVisitor visitor) {
          for ( RowVisitable row : children ) {
             row.acceptRowVisitor(visitor);
    DataSet set;
    RowVisitor printVisitor = new RowVisitor() {
       public void visitRow(Row row) {
          System.out.println(row);
    set.acceptRowVisitor(printVisitor);Another option would be an Iterator pattern.

  • Class implementing two interfaces with same methods

    interface Foo {
    public void execute();
    interface Bar {
    public void execute();
    class Dam implements Foo, Bar {
    public void execute() {
    //Which interface's execute method is being called here?
    How do I make the Damn class have different implemenations for the execute method of the Foo and the Bar interfaces?

    hi,
    //Which interface's execute method is being calledinterfaces' method are neither called to be executed by the JVM because they're not concrete implementation but only signature declaration.
    How do I make the Damn class have different
    implemenations for the execute method of the Foo and
    the Bar interfaces?this can't be done if the signatures are the same, but if they're not, for instance
    public void execute( int i )
    public void execute( String s )
    then you can have two implementation...anyway, what's the point if the signature are the same ? if you really want them to do different things why wouldn't you name them differently ?
    raphaele

  • RMI: swing: class ot interface expeted : public void

    PLease take look at the program and the error, i have underlined the area where error has occured...
    Thnk you
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.rmi.*;
    import java.net.*;
         public class appRMIcc extends Frame implements ActionListener{
               JLabel l;
               JTextField tf1,tf2;
               JButton b;
                    public appRMIcc(){
                         setLayout(new FlowLayout());
                         l = new JLabel("Enter the Credit Card number");
                         tf1 = new JTextField(30);
                         tf2 = new JTextField(30);
                         b = new JButton("Check the Card Number");
                         add(l);add(tf1);add(b);
                         add(tf2);
                         b.addActionListener(this);
                         public void actionPerformed(ActionEvent e){                          String cc = tf1.getText();
                              try{
                                   RMIccinterface robj;
                                   robj = (RMIccinterface) Naming.lookup("rmi://127.0.0.1/visagold");
                                   if(robj.isValid(cc)) tf2.setText(String.valueOf("Credit Card valid"));
                                   else
                                   tf2.setText(String.valueOf("Invalid Credit Card Number"));
                                   catch(Exception ex){
                                        System.out.println(ex);
               public static void main(String v[]){
                    appRMIcc dd = new appRMIcc();
                    dd.setSize(400,400);
                    dd.show();
    i got the following error, i ra the above program in the command line, it worked fine but applet is not working..
    --------------------Configuration: <Default>--------------------
    C:\j2sdk\bin\appRMIcc.java:28: 'class' or 'interface' expected
                                    public void actionPerformed(ActionEvent e){
                                           ^
    1 error
    Process completed.
         

    public appRMIcc(){
      setLayout(new FlowLayout());
      l = new JLabel("Enter the Credit Card number");
      tf1 = new JTextField(30);
      tf2 = new JTextField(30);
      b = new JButton("Check the Card Number");
      add(l);add(tf1);add(b);
      add(tf2);
      b.addActionListener(this);
    }If you say so...

  • Defining return values of the same class in interface implementations

    hello,
    i'm trying to update older code to java 1.5 using generics. i'm new to generics and i have a problem i cannot solve: assuming the interface
    public interface Stake
         public Stake makeACopyAndShift( long delta );
    }and the class
    public class BasicStake
          private final long pos;
          public BasicStake( long pos )
                 this.pos = pos;
          public Stake makeACopyAndShift( long delta )
                  return new BasicStake( pos + delta );
    }... and a container class Trail:
    public class Trail<S> {
           private final List<S> stakes = new ArrayList<S>();
           public Trail() {}
           public void add( S stake ) { stakes.add( stake ); }
           public S get( int index ) { return stakes.get( index ); }
           public void shiftAll( long delta )
                  final List<S> stakesNew = new ArrayList<S>( stakes.size() );
                  S orig, copy;
                  for( int i = 0; i < stakes.size(); i++ ) {
                          orig = stakes.get( i );
                          copy = (S) orig.makeCopyAndShift( delta );
                          stakesNew.add( copy );
                  stakes.clear();
                  stakes.addAll( stakesNew );
    so that i could do:
    Trail<BasicStake> t = new Trail<BasicStake>();etc.
    how do i manage to get rid of the warning
    "Type safety: The cast from Stake to S is actually checking against the erased type Stake"
    with casting to (S) in the for-loop in the shiftAll function? Obviously the problem is that in interface Stake the return type of makeCopyAndShift should not be Stake but "<SameClassAsMe>", so that in BasicStake the method would be
    public BasicStake makeCopyAndShift( long delta ) { ... }. how do i accomplish that?
    thanks a lot!
    ciao, -sciss-

    This seems to work just fine for me:
    public class Foo {
        public static void main(String[] args) {
            Trail<Stake> trail = new Trail<Stake>();
            trail.add(new BasicStake(1L));
            trail.add(new AnotherStake(1L));
            trail.shiftAll(10L);
    interface Stake {
         public Stake makeACopyAndShift(long delta);
    class BasicStake implements Stake {
        private final long pos;
        public BasicStake(long pos) {
            this.pos = pos;
        public Stake makeACopyAndShift(long delta) {
            return new BasicStake(pos+delta);
    class AnotherStake implements Stake {
        private final long pos;
        public AnotherStake(long pos) {
            this.pos = pos;
        public Stake makeACopyAndShift(long delta) {
            return new AnotherStake(pos*delta);
    class Trail<S extends Stake> {
        private final List<Stake> stakes;
        public Trail() { stakes = new ArrayList<Stake>(); }
        public void add(S stake) { stakes.add(stake); }
        public Stake get(int index) { return stakes.get(index); }
        public void shiftAll(long delta) {
            final List<Stake> stakesNew = new ArrayList<Stake>(stakes.size());
            for(int i = 0; i < stakes.size(); i++ ) {
                Stake orig = stakes.get(i);
                Stake copy = orig.makeACopyAndShift(delta);
                stakesNew.add(copy);
            stakes.clear();
            stakes.addAll(stakesNew);
    }

  • Implements interface method at the derived class

    Hi all.
    I have a class (Derived) that extends another class (Base).
    In the base class (Base) there is a method f() with its implementation.
    In the interface (C) there is also f() method exactlly like in the base class (Base).
    The derived class (Derived) is implements the interface (C).
    My question is:
    Do i have to implement the method f() in the derived class (Derived) ?

    My guess is that you probably have to, even if it's just to call the parent's method.
    This all sounds pretty sketchy. Why don't you just make the BASE class implement your interface?

  • Error: "Could not resolve [public class] to a component implementation

    Here's another clueless newbie question! :-(
    I define a public class "DynamicTextArea" at the top of the file, and get the compiler error message "Could not resolve <DynamicTextArea> to a component implementation" at the bottom of the same file.
    Clearly, I don't understand something very basic.
    (The code between the commenrted asterisks was originally in a separate package file, which I couldn't get either mxmlc or FlexBuilder to find, so rather than fight that issue now, I moved it into the same file.)
    Here's the file:
    <?xml version="1.0" encoding="utf-8" ?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    >
    <!--****************************************************************-->
        <mx:Script>
        <![CDATA[
      import flash.events.Event;
      import mx.controls.TextArea;
    public class DynamicTextArea extends TextArea{
        public function DynamicTextArea(){
          super();
          super.horizontalScrollPolicy = "off";
          super.verticalScrollPolicy = "off";
          this.addEventListener(Event.CHANGE, adjustHeightHandler);
        private function adjustHeightHandler(event:Event):void{
          trace("textField.getLineMetrics(0).height: " + textField.getLineMetrics(0).height);
          if(height <= textField.textHeight + textField.getLineMetrics(0).height){
            height = textField.textHeight;    
            validateNow();
        override public function set text(val:String):void{
          textField.text = val;
          validateNow();
          height = textField.textHeight;
          validateNow();
        override public function set htmlText(val:String):void{
          textField.htmlText = val;
          validateNow();
          height = textField.textHeight;
          validateNow();
        override public function set height(value:Number):void{
          if(textField == null){
            if(height <= value){
              super.height = value;
          }else{      
            var currentHeight:uint = textField.textHeight + textField.getLineMetrics(0).height;
            if (currentHeight<= super.maxHeight){
              if(textField.textHeight != textField.getLineMetrics(0).height){
                super.height = currentHeight;
            }else{
                super.height = super.maxHeight;        
        override public function get text():String{
            return textField.text;
        override public function get htmlText():String{
            return textField.htmlText;
        override public function set maxHeight(value:Number):void{
          super.maxHeight = value;
        ]]>
      </mx:Script>
    <!--****************************************************************-->
         <mx:Script>
        <![CDATA[
          import mx.controls.Alert;
          private var str:String = "This text will be long enough to trigger " +
            "the TextArea to increase its height.";
          private var htmlStr:String = "This <b>text</b> will be <font color='#00FF00'>long enough</font> to trigger " +
            "the TextArea to increase its height.";
          private function setLargeText():void{
            txt1.text = str;
            txt2.text = str;
            txt3.text = str;
            txt4.text = str;
            txt5.htmlText = htmlStr;
            txt6.htmlText = htmlStr;
            txt7.htmlText = htmlStr;
            txt8.htmlText = htmlStr;
        ]]>
      </mx:Script>
      <DynamicTextArea id="txt1" width="300" height="14"/>
      <DynamicTextArea id="txt2" width="300" height="20"/>
      <DynamicTextArea id="txt3" width="300" height="28"/>
      <DynamicTextArea id="txt4" width="300" height="50"/>
      <DynamicTextArea id="txt5" width="300" height="14"/>
      <DynamicTextArea id="txt6" width="300" height="20"/>
      <DynamicTextArea id="txt7" width="300" height="28"/>
      <DynamicTextArea id="txt8" width="300" height="50"/>
      <mx:Button label="Set Large Text" click="setLargeText();"/>
    </mx:Application>
         Thanks for any insight you can provide!
    Harvey

    Gordon:
        As you've noted, there were multiple  misunderstandings.
        Some are due to references in the language which are  different from uses in pre-existing languages.
        Take "name spaces". They look like URLs but they're  not. One of the first errors I made when starting Flex was to try to browse to  http://www.adobe.com/2006/mxml. I  figured that it would have some description of the language. But it didn't. In  spite of LOOKING like a URL, it doesn't point to anything; it's really just an  arbitrary magic incantation, like "Open Sesame".
        But, then when I wanted to use my OWN namespace, I  find that it's NOT arbitrary, and does have to point to something, but it's  still not a URL. The "AHA" moment was when Michael told me that "*" means "look  in this directory for a file with the name later named in an import statement,  but not named here". And if the file was in subfolder  "X" I'd have to use "X.*", while if it were a URL I'd use slash instead of  dot, but never an asterisk.
        When the language syntax is so contrary to the  expectations of people coming from a declarative language or web programming  background, I think it is important to explicitly address the differences and  disabuse them of their preconceptions. I think the same should apply to the ways  in which ActionScript differs from ECMAScript.
        Another problem adding to my confusion is the habit  of naming variables with the names of keywords but with capitalization changes.  Not only does that set readers up for subtle "gotchas", but makes it unclear  which names are truly arbitrary, and which are required by the  compiler.
    It might be a good idea to have a convention of an  identifiable format for user variables. Many authors use names like  myButton for that purpose.
        It would also be helpful if printed text could  simulate the syntax coloring of the better editors, or at least have more  in-source comments saying exactly what each line does. (Or both)
        Another aid to understanding would be to provide a  reference to the alternative (MXML or AS) way of doing anything, whenever you  demonstrate one of the ways.
        I find that the emphasis on using FlexBuilder  distracts from a sense of what is really going on behind the scenes. E,g.: If  FlexBuilder automatically sets up the folder structure, I don't learn to do it  myself. I like to work at the code level, so when something goes wrong I don't  have to worry about what level it went wrong at.
        Also, not everyone is willing to drop $600 or $250  BEFORE they've learned whether they even like Flex. Your tutorials are, by  definition, addressed to newcomers who may well not yet have committed to the  expense of FlexBuilder. So more emphasis on using mxmlc would be nice. It would  also be helpful to discuss how to use local servers, like Tomcat, during the  development stage.
        Thanks for asking my opinion. I'm afraid that my 40  years of programming experience may make it harder for me to adapt to this new  style of programming than it would be for a kid with a tabula rasa. But, it  looks like it'll be fun once I get over the hump!
    Harvey

Maybe you are looking for

  • Unable to login with SYSUSER in CC&B 2.3.1

    Hi, I recently installed CC&B 2.3.1 but i am not able to login with SYSUSER and sysuser00. I could see the encrypted version of the Password in Environ.ini but i could not login in CC&B with SYSUSER. Please help

  • Created playlist not showing up when iPhone is plugged in

    I'm using an iPhone 5s on iOS 8.1.2. I have created music playlists on my phone but when its plugged in they would not show up on the sidebar. My library shows up fine but when i try to look for my playlists they aren't there!!! Any help would me muc

  • Livecycle ES4 could not access CQ welcome page

    I have installed Livecycle ES4 on Linux following the install guide provided. I was at the step of verifying Post-deployment tasks. All the following web browser URL worked except URL below.  5.1.3.3  Accessing CQ Welcome Page  - [http://[hostname]:[

  • ...better compression?

    ...I've just rendered a 12 minute video to DVD and not satisfied with quality. From FCP i exported an setting: >deinterlaced>720x480 SD ANAMORPHIC 16:9 uncompressed 8bit> YUV> highest quality /motion> best at a 13gb file size. After DVDSP got through

  • Automating Portal Role Assignment

    Hi Everyone, At my project we are looking to automate the process of Portal Role assignment. With our current design, a user initially logs into the ISA and ICSS Portal as an anonymous Portal user.  To view all content the user will be required to re