Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a classes operation from within another class

Status
Not open for further replies.

Gonnzo

Programmer
Apr 17, 2003
5
GB
Hi All,

I am developing a program but have become a little stuck with the details of it. Basically I need to call a classes function from within another class.

Its got me a little confused thinking about how to do this, would someone be able to point me in the right direction?

Thanks
 
Code:
object.function(); // for instance function

or

Code:
Class::function(); // for static functon


The fact that you phrase your question like that shows that you really don't understand the concept of classes and objects. I'd suggest reading an introductory chapter on classes in a C++ textbook.
 
Form1->Query1->Open ()

this calls the open() function from the TQuery class from the TForm class.

tomcruz.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top