09-05-2006
Buddy you have missed the Greeter class definition and this question is related to Java.
7 More Discussions You Might Find Interesting
1. Programming
helo i read many books but i cant find the proper answer that why
constructor cannot be virtual
can u explain me in simple term that why constructor cannot be virtual
Regards,
Amit (2 Replies)
Discussion started by: amitpansuria
2 Replies
2. Programming
helo i m new in c++ on linux
can u tell me with an simple example that how do you handle constructor and destructor that fail?
Regards,
Amit (4 Replies)
Discussion started by: amitpansuria
4 Replies
3. Shell Programming and Scripting
Hi,
Is it possible to call the constructur of a java class in a shell script?
I know you can call static methods, but can you also call the constructor?
tnx. (1 Reply)
Discussion started by: thebladerunner
1 Replies
4. Programming
Hi All,
I have made the simple following program :-
#include <string>
#include <iostream>
using namespace std;
class A{
private: int val;
public :
A(){cout<<"In A()"<<endl;}
A (const A& aa)
{
cout<<"In copy c'tor"<<endl;
}
};
A f(... (1 Reply)
Discussion started by: shubhranshu
1 Replies
5. Programming
I have the following code
class Param{
public:
Param(int aa, int bb){
a=aa;
b=bb;
}
int a,b;
};
void function(Param);
int main(){
function(2,3);
return 0;
} (6 Replies)
Discussion started by: santiagorf
6 Replies
6. Programming
Hi,
If I run the following program
class A {
public:
A() { cout << "default" << endl; }
A(const A&) { cout << "copy" << endl; }
};
A tmp;
A fun() {
return tmp;
}
A test() {
A tmp;
cout << &tmp << endl;
return tmp;
} (1 Reply)
Discussion started by: royalibrahim
1 Replies
7. Programming
I am learning about C++ and today am reading concepts for Constructor but it seems a bit difficult to grab it fully. Please anyone explain in simple words about Constructor? (1 Reply)
Discussion started by: ggiwebsinfo
1 Replies
GCJH(1) GNU GCJH(1)
NAME
gcjh - - generate header files from Java class files
SYNOPSIS
gcjh [OPTIONS]... CLASS...
DESCRIPTION
The "gcjh" program is used to generate header files from class files. It can generate both CNI and JNI header files, as well as stub
implementation files which can be used as a basis for implementing the required native methods. It is similar to "javah" but has slightly
different command line options, and defaults to CNI.
OPTIONS
See "javah" for a full description; this page only lists the additional options provided by "gcjh".
CNI text options
-add text
Insert text into class body.
-append text
Append text after class declaration.
-friend text
Insert text as a "friend" declaration.
-prepend text
Insert text before start of class.
Compatibility options (unused)
-td DIR
-M
-MM
-MD
-MMD
Unused compatibility option.
Standard options:
-help
Print help text, then exit.
-version
Print version number, then exit.
-JOPTION
Pass argument to the Java runtime.
BUGS
SEE ALSO
javac(1), javah(1), ...
AUTHOR
0.98 2010-07-05 GCJH(1)