Inheritance question

  • Thread starter Thread starter Johnny van Cadsand
  • Start date Start date
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 ::..
 
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 ::..
 
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
 
Back
Top