Click here to Skip to main content
15,915,703 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Large image handling Pin
Rob Brookes26-May-08 8:25
Rob Brookes26-May-08 8:25 
Question[Message Deleted] Pin
Kumaran21cen24-May-08 23:54
Kumaran21cen24-May-08 23:54 
AnswerRe: How to get files list from my website Pin
jzonthemtn25-May-08 14:02
jzonthemtn25-May-08 14:02 
QuestionCalender Control Pin
Sameer Khade24-May-08 20:37
Sameer Khade24-May-08 20:37 
AnswerRe: Calender Control Pin
helelark12324-May-08 21:08
helelark12324-May-08 21:08 
AnswerRe: Calender Control Pin
Piyush Vardhan Singh26-May-08 2:31
Piyush Vardhan Singh26-May-08 2:31 
QuestionConverting an inherited class into a wrapper? Pin
supercat924-May-08 8:44
supercat924-May-08 8:44 
AnswerRe: Converting an inherited class into a wrapper? Pin
Colin Angus Mackay24-May-08 9:45
Colin Angus Mackay24-May-08 9:45 
supercat9 wrote:
Although that reduced typing when I was making the class


That isn't really a valid reason for inheritance.

supercat9 wrote:
operations that make sense applied to the base class don't necessarily make sense applied to the inheriting one


When deciding to create a derived class you have to ask yourself: is the derived class a specialised type of the base class. The derived class must have an IS-A relationship with the base class. For example, a spaniel IS A dog, a dog IS A mammal, a mammal IS An animal, an animal IS A lifeform.


supercat9 wrote:
If all references to the underlying base class were preceded by "mybase." there would be no particular difficulty changing the class to use a wrapper. All I'd have to do would be to define a new object of the inner type within the outer class, create it within the outer class' constructor, and then find/replace "mybase" with the name of that new object.


I am having difficulty visualising what you mean. I suspect what you actually want is an association between the derived class and the base class rathern than inheritance, possibly with the base class and associated class sharing some common interface. However, you have not provided enough information. Your description is too abstract but it looks like you don't understand enough of the underlying concepts to be able to describe things at that level. Perhaps if you described your actual problem instead of attempting to hide what you are trying to do then we can help.


GeneralRe: Converting an inherited class into a wrapper? Pin
supercat924-May-08 13:24
supercat924-May-08 13:24 
GeneralRe: Converting an inherited class into a wrapper? Pin
theitmueller25-May-08 2:02
theitmueller25-May-08 2:02 
GeneralRe: Converting an inherited class into a wrapper? Pin
supercat925-May-08 12:04
supercat925-May-08 12:04 
AnswerRe: Converting an inherited class into a wrapper? Pin
Scott Dorman25-May-08 1:57
professionalScott Dorman25-May-08 1:57 
QuestionVB with crystal report problem Pin
monika_vasvani24-May-08 7:43
monika_vasvani24-May-08 7:43 
AnswerRe: VB with crystal report problem Pin
Mohammad Al Hoss25-May-08 23:45
Mohammad Al Hoss25-May-08 23:45 
GeneralRe: VB with crystal report problem Pin
monika_vasvani2-Jun-08 22:13
monika_vasvani2-Jun-08 22:13 
GeneralRe: VB with crystal report problem Pin
Mohammad Al Hoss3-Jun-08 2:40
Mohammad Al Hoss3-Jun-08 2:40 
QuestionAdd custom task pane in outlook 2003 using vb.net 2005 Pin
~Khatri Mitesh~24-May-08 4:47
~Khatri Mitesh~24-May-08 4:47 
QuestionRegex required Pin
d_smit24-May-08 4:23
d_smit24-May-08 4:23 
QuestionLogin Restriction Pin
Sritanu _ Ghosh24-May-08 3:54
Sritanu _ Ghosh24-May-08 3:54 
AnswerRe: Login Restriction Pin
jzonthemtn24-May-08 5:10
jzonthemtn24-May-08 5:10 
GeneralRe: Login Restriction Pin
Sritanu _ Ghosh26-May-08 3:58
Sritanu _ Ghosh26-May-08 3:58 
GeneralRe: Login Restriction Pin
jzonthemtn26-May-08 7:30
jzonthemtn26-May-08 7:30 
QuestionConverting MFC apps to .net Pin
Fu Manchu24-May-08 1:17
Fu Manchu24-May-08 1:17 
AnswerRe: Converting MFC apps to .net Pin
Garth J Lancaster24-May-08 2:32
professionalGarth J Lancaster24-May-08 2:32 
GeneralRe: Converting MFC apps to .net Pin
Fu Manchu24-May-08 2:51
Fu Manchu24-May-08 2:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.