can someone explain me how this operator work? i just need some hit to clearify my confusion on this... thanks

Member Avatar
Member Avatar
+0 forum 1

Hi, I have a working program and I need to answer the following questions: 1:where was polymorphism was used in this application? 2:identify where overriding or overloading was used in this application? I belive overriding is used by the Runnable method to override the run() method. Would that be a good explenation? I am not sure how to clearly communicate how polymorphism is used. Any ideas on how to explain it? Thanks /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package treading; /** * * @author Q */ //Runnable …

Member Avatar
Member Avatar
+0 forum 2

Lets say I have a class A and I also have classes B and C that inherit from class A class A { virtual void foo()=0; //stuff } class B : class A { void foo(); //more specific stuff } class C : class A { void foo(); //more specific stuff } Now lets say I have a similar set up for classes X, Y, and Z, except I want them contain some form of class A as such. class X { A m_myA; // I know this doesn't work due to the abstract definition, but this is my goal …

Member Avatar
Member Avatar
+0 forum 2

The End.