471,072 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,072 software developers and data experts.

Multiple Classes and Namespace

I know that multiple class inheritance is not possible in VB.Net I also
know that I can:

inherit class a

and in class a:

inherit class b

and in class b:

inherit System.Web.UI.Page

and so on and so forth, thus allowing me to effectively "inherit"
classes a, b, c, and system.windows.forms.form by inheriting class a in
my code. Now, for the question at hand. Lets say I need my project to
inherit from a system namespace, using the following:

Inherits System.Web.Services.WebService

And I also need to inherit classes a, b, and c... How can I make that
happen? It seems like I can import an unlimited amount of custom
classes by calling them via the hierarhy I described above. However,
using this method, I can only ultimately inherit from one system
namespace in the entire project, and I have a project that needs to
inherit both the WebService and WebPage classes... how can I do that?
Thanks in advance!

Nov 21 '05 #1
3 2927
Elroy,

I was making an answer while I got the idea that you are trying to build
something strange.

What are you trying to build, a webpage that acts as a webservice or
something.

You can not build a horse with a carengine inside by letting a horse
inheriting from cars.

Just my thought

Cor
"Elroyskimms" <el*********@yahoo.com>
..
I know that multiple class inheritance is not possible in VB.Net I also
know that I can:

inherit class a

and in class a:

inherit class b

and in class b:

inherit System.Web.UI.Page

and so on and so forth, thus allowing me to effectively "inherit"
classes a, b, c, and system.windows.forms.form by inheriting class a in
my code. Now, for the question at hand. Lets say I need my project to
inherit from a system namespace, using the following:

Inherits System.Web.Services.WebService

And I also need to inherit classes a, b, and c... How can I make that
happen? It seems like I can import an unlimited amount of custom
classes by calling them via the hierarhy I described above. However,
using this method, I can only ultimately inherit from one system
namespace in the entire project, and I have a project that needs to
inherit both the WebService and WebPage classes... how can I do that?
Thanks in advance!

Nov 21 '05 #2
Elroy,

I was making an answer while I got the idea that you are trying to build
something strange.

What are you trying to build, a webpage that acts as a webservice or
something.

You can not build a horse with a carengine inside by letting a horse
inheriting from cars.

Just my thought

Cor
"Elroyskimms" <el*********@yahoo.com>
..
I know that multiple class inheritance is not possible in VB.Net I also
know that I can:

inherit class a

and in class a:

inherit class b

and in class b:

inherit System.Web.UI.Page

and so on and so forth, thus allowing me to effectively "inherit"
classes a, b, c, and system.windows.forms.form by inheriting class a in
my code. Now, for the question at hand. Lets say I need my project to
inherit from a system namespace, using the following:

Inherits System.Web.Services.WebService

And I also need to inherit classes a, b, and c... How can I make that
happen? It seems like I can import an unlimited amount of custom
classes by calling them via the hierarhy I described above. However,
using this method, I can only ultimately inherit from one system
namespace in the entire project, and I have a project that needs to
inherit both the WebService and WebPage classes... how can I do that?
Thanks in advance!

Nov 21 '05 #3
Cor,

I apologize for the delayed response... but yes, I am trying to build
something strange (I never pick the easy ones). Here is the concept:

I have a Web Service, it works very well. Multiple servers connect to
the Web Service, it performs its "special magic" as expected and I am
very happy with the result. Enter the customer who wants to make a
change to the system...

When the Web Service is finished, I need it to pass along an XML file
using HTTP GET/POST and then capture an XML response from the GET/POST
operation. I can make the Web Service GEt/POST without a problem, but
the XMLTextReader I use to capture the response is part of the
System.Web.UI.Page class, and I cannot inherit that class within my Web
Service. Is there an XMLTextReader equivalent for a Web Service? Sample
code? Thanks for your help!

-Elroyskimms
Cor Ligthert wrote:
Elroy,

I was making an answer while I got the idea that you are trying to build something strange.

What are you trying to build, a webpage that acts as a webservice or
something.

You can not build a horse with a carengine inside by letting a horse
inheriting from cars.

Just my thought

Cor
"Elroyskimms" <el*********@yahoo.com>
.
I know that multiple class inheritance is not possible in VB.Net I also know that I can:

inherit class a

and in class a:

inherit class b

and in class b:

inherit System.Web.UI.Page

and so on and so forth, thus allowing me to effectively "inherit"
classes a, b, c, and system.windows.forms.form by inheriting class a in my code. Now, for the question at hand. Lets say I need my project to inherit from a system namespace, using the following:

Inherits System.Web.Services.WebService

And I also need to inherit classes a, b, and c... How can I make that happen? It seems like I can import an unlimited amount of custom
classes by calling them via the hierarhy I described above. However, using this method, I can only ultimately inherit from one system
namespace in the entire project, and I have a project that needs to
inherit both the WebService and WebPage classes... how can I do that? Thanks in advance!


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Elroyskimms | last post: by
reply views Thread by yossis | last post: by
4 posts views Thread by yossis | last post: by
reply views Thread by msustrick | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.