Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-19-2006, 04:40 PM   #1 (permalink)
Jeepxj206
Registered User
 
Join Date: Feb 2006
Posts: 1
Jeepxj206 is on a distinguished road
Relating 2 or more classes.

i need to call some methods in main that are in another class. how do i go about relating the two?
Jeepxj206 is offline   Reply With Quote
Old 02-19-2006, 11:24 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
what language?

if it's c# , or another .net language, then you need to include the namespace of that other class in your file.

then, it would depend on your class. if the class is not static, then you would instanciate the object. c# example:
Code:
SomeClass sc = new SomeClass();
we really need more info to be able to help.
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamicly load DLL classes DJMaze Platform/API C++ 1 09-22-2005 12:30 PM
Classes started with C++ classes and now I'm lost...HELP cleverest Standard C, C++ 15 04-24-2005 04:29 PM
classes? falsepride PHP 5 12-29-2004 08:20 AM
classes and servlets .. oh my sde Java 3 04-27-2004 08:00 AM


All times are GMT -8. The time now is 11:12 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting