How to determine whether the object passed is passby value / reference?
108544
Your object will be passed by reference because\nthat's how Java passes all objects.  Only the\nprimitive types like "int" are passed by value.
1015124
The result will be false if the AbstractObject is an abstract class!\n\nThe result will be true if AbstractObject is a concrete class
197553
I looked through it pretty carefully, and I believe\nit is correct.  I would, however, like to make a\ncouple of comments.\n\nFirst, this code makes no attempt at balancing the\ntrees, so you can easily end up with a linked list\nrather than a binary tree.  Consider if you created\nthe tree by passing in a set of sorted values.\n\nSecond, from the perspective of understanding the\nflow, it's a little harder when a routine has so\nmany distinct return points.  I'm not sure if it is\nbetter, but at least consider the following code\nwhich is semantically identical:\n\nTreeNode* InsertTree( TreeNode* tnPtr, const TreeItemType& item)\n{\n    // Inserting an item\n    if(tnPtr == NULL)\n        tnPtr = new TreeNode(item);\n\n    if(item < tnPtr->item_)\n        tnPtr->left_ = InsertTree(tnPtr->left_, item);\n    else if(item > tnPtr->item_)\n        tnPtr->right_ = InsertTree(tnPtr->right_, item);\n\n    return tnPtr;\n}
1147478
Memory Handling.\nWhatever memory space you occupy by instantiating the objects should be released after your use.\nType Casting should also be taken care.
547629
assuming u is an unknown variable y=0
1044662
There can be different ways. Let me just state two.\n\n1. Declare a public variable in the general declaration section.\n2. Assign the value to that variable\n3. And just print the value of that variable on the other form.\n\nThe other way is just to use ADO(ActiveX Data Objects) to transfer data from one form to the other.
369214
Its a pointer that has the value of 0 (NULL).
567069
make sure that the method ReturnBook is not a void but instead returns a boolean value.\n\nIf you want to follow the standard java naming conventions rename the method to "returnBook". Methods typically start with a small letter.\n\nkeep a bookmark to this page that contains all possible\njava compiler error messages for future reference:\n\nhttp://mindprod.com/jgloss/compileerrormessages.html
437544
DIRECT  OBJECT  ??????
834753
compare with '&#92;0' or null
925250
BOOKS ???\n\nwrite a overload method for the assignment operator in the derived class.... if the same operator is overloaded in the base class then you must use virtual keyword in the base overloading method.
646616
class publication\n{\n   private :\n      char title[20];\n      float price;\n   public :\n      void getdata()\n      {\n          cin>>title;\n          cin>>price;\n      }\n};\nclass books :: public publication\n{\n   private :\n      int pagecount;\n   public :\n      void getdata()\n      {\n          cin>>pagecount;\n      }\n\n};\nclass tape :: public publication\n{\n   private :\n      int playing_time;\n   public :\n      void getdata()\n      {\n          cin>>playing_time;\n      }\n};
817515
Is your object class the one that manage both creation and destruction of instances? \n\nYou could have both a static Create method and a static Destroy method.  Destroy would push instances into an 'unused instances' stack and Create would pop the first instance of that stack and assign new values to it as needed.\n\nThat way you save memory allocation/desallocation.
329175
I'm assuming your accessing it from another class? \n\nPrivate declaration stops this from occuring. You need to provide a public property ie.\n\nprivate _str as string = ""\nPublic Property etc as string\nGet\nreturn _str\nEnd Get\nSet(value as string)\n_str = value\nEnd Set\nEnd Property\n\nOtherwise if you are accessing a class-scope variable normally, you could do:-\n\nPublic class Class1\n Private Str as string = ""\n Private Sub New()\n   Str = "Hehehe"\n End Sub\nEnd Class\n\nQuestion wasn't clearly stated, but i think that should answer it...
89402
Code:\npublic class BTNode \n{\n    private Object data;\n    private BTNode left, right;\n    public BTNode(Object initialData, BTNode initialLeft, BTNode initialRight)\n        { \n            data = initialData;\n            left = initialLeft;\n            right = initialRight;\n        }\n    public BTNode()\n            { this(null, null, null); }\n    \n    public BTNode(Object newdata)\n            { this(newdata, null, null); }\n    \n    //NODE methods\n    public Object getData()                     //return and set data in node\n            {return data;}\n    \n    public void setData(Object data)\n            {this.data = data; }\n    \n    public BTNode getLeft()                 //return and set left child\n            {return left; }\n    \n    public void setLeft(BTNode left)\n            {this.left = left; }\n    \n    public BTNode getRight()                //return and set right child\n            {return right; }\n    \n    public void setRight(BTNode right)\n            {this.right = right; }\n    \n    public boolean isLeaf()                 //return true if this is leaf node\n            {return (left == null)&&(right == null); }\n \n// TREE Methods - for tree starting at this node\n// get specific data from a tree\n    \n        public Object getLeftmostData()\n        { if(left == null)\n               return data;\n          else \n              return left.getLeftmostData(); }\n        \n        public Object getRightmostData()\n              { if(right == null)\n               return data;\n          else \n              return right.getRightmostData(); }\n// print data in a tree\n        public void inorderPrint()\n                {\n                    if (left != null)\n                        left.inorderPrint( );\n                    System.out.print(data+"&#92;t");\n                    if (right != null)\n                        right.inorderPrint( ); }\n        \n        public void preorderPrint()\n                {\n                    System.out.print(data+"&#92;t");\n                    if (left != null)\n                        left.preorderPrint( );\n                    if (right != null)\n                        right.preorderPrint( ); }\n        \n        public void postorderPrint()\n                {\n                    if (left != null)\n                        left.postorderPrint( );\n                    if (right != null)\n                        right.postorderPrint( );\n                    System.out.print(data+"&#92;t"); }\n        \n// pretty print a tree\n        //public void print(int depth);\n \n//Interface for Nodes in Binary Tree (3)\n//removing nodes from a tree\n//returns reference to tree after removal of node\n        public BTNode removeLeftmost()\n              {\n                    if (left == null)                               // we are as deep as we can get\n                        return right;                               // remove this node by returning right subt ree\n                    else\n                        {                                           // keep going down recursively\n                            left = left.removeLeftmost( );\n                                                                    // when done, return node that act ivated this\n                                                                    // method as root of t ree\n                            return this; }}\n        \n        public BTNode removeRightmost()\n        {\n                    if (right == null)                               // we are as deep as we can get\n                        return left;                               // remove this node by returning left subt ree\n                    else\n                        {                                           // keep going down recursively\n                            right = right.removeRightmost( );\n
639598
it means exactly what it says.\nyou failed to supply a required argument for a function/object
1169509
abbreviation? = const.