No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
why subscript operator ([]) must be overloaded in member function?? one may say that because it will take one argument , but operation needs two operands...one the base address and second is index(offset). cdnt it be , if cd have been treated like binary operator as well like this class … |
|
hi all, i have created a class names members which looks like this.. class mymembers{ int data; float dummy; char* thename; public : mymembers() { cout<<"the value of i is "<<data; data =12; } mymembers(int ic,char* name) { thename = name; data= ic; cout<<"hello this object's data value is "<<data<<endl; … |
|
Re:
Accorting to MySql manual and web site I modified the environment variable for installing JConnector for mysql as follows : CLASSPATH C:\Program Files\Java\mysql-connector-java-5.0.7\mysql-connector-java-5.0.7-bin.jar where my MySql connector Folder is placed on Java folder in program files (I put there willingly) But actually when I want to do any testing program … |
|
what happens at memory level....when one object is assigned to another.... i have written 2 classes.....1st named base class mybase and a subclass named subclass.... now i create object of baseclass... mybase b = new mybase(); //and now i create object of subclass subclass c = new subclass(); b=c; now … |