Inheritance question

J

Johnny van Cadsand

Hi,

Question about inheritance in VB.Net
I know how inheritance works.
But do i have to put all the inherited classes/files in the same
directory as the class/file which inherits is in??

eg.
My dirtree is as follows:
A - B
- C
A is parent of B and C
I have a class person in dir B. A class person2 which inherits from
person is in class C. In this situation i get the message: 'person is not
defined'
If person is in dir C it works.

Can i solve this with namespace or something?

--

==============================================================
Johnny van Cadsand news ( ) cadsand ! demon ! nl

..:: Up to the Sky and Back ::..
 
J

Johnny van Cadsand

Johnny van Cadsand wrote :

eg.
My dirtree is as follows:
A - B
- C
A is parent of B and C
I have a class person in dir B. A class person2 which inherits from
person is in class C.

<cut>

I mean:
A class person2 which inherits from person is in dir C

--

==============================================================
Johnny van Cadsand news ( ) cadsand ! demon ! nl

..:: Up to the Sky and Back ::..
 
L

Larry Serflaten

Johnny van Cadsand said:
Question about inheritance in VB.Net
I know how inheritance works.
But do i have to put all the inherited classes/files in the same
directory as the class/file which inherits is in??

As far as I can tell, your own directory structure has no bearing
on what classes are included in your project. With all the classes
a part of the same project, you should have no problem inheriting
one from another.

LFS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top