Click here to Skip to main content
16,015,003 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Vertical Label Pin
MatthysDT17-Jan-07 0:50
MatthysDT17-Jan-07 0:50 
QuestionCan I make a Crystal Report using dataview Pin
hisuman10016-Jan-07 20:08
hisuman10016-Jan-07 20:08 
QuestionGet Words from .doc, .rtf, .htm [modified] Pin
Kumaran21cen16-Jan-07 19:54
Kumaran21cen16-Jan-07 19:54 
AnswerRe: Get Words from .doc, .rtf, .htm Pin
Christian Graus16-Jan-07 20:50
protectorChristian Graus16-Jan-07 20:50 
GeneralRe: Get Words from .doc, .rtf, .htm Pin
Jason McBurney17-Jan-07 6:55
Jason McBurney17-Jan-07 6:55 
Questioninheritance problem? Pin
moize1216-Jan-07 14:28
moize1216-Jan-07 14:28 
AnswerRe: inheritance problem? Pin
Christian Graus16-Jan-07 15:02
protectorChristian Graus16-Jan-07 15:02 
AnswerRe: inheritance problem? Pin
Guffa16-Jan-07 22:19
Guffa16-Jan-07 22:19 
moize12 wrote:
is there something i've missed?


Obviously. Wink | ;)

moize12 wrote:
how do i declare an object of type parent and still access the subclass properties.


You don't. As long as you treat the object as an instance of the parent class, it works as an instance of the parent class, so it only has the members that the parent class has.

If you want to access the members of the sub class, you have to cast the reference into the sub class so that you treat the instance as the actual object that it is.


Something related that you might want to look into is virtual methods. You can have a virtual method in the parent class and override it in the sub class. When you call the method, it will use the method in the actual class of the object, regardless of the type of reference you use to access the object.

---
Year happy = new Year(2007);

AnswerRe: inheritance problem? Pin
Dave Sexton17-Jan-07 0:40
Dave Sexton17-Jan-07 0:40 
Questionmaxlength of textbox Pin
ctlqt1216-Jan-07 13:28
ctlqt1216-Jan-07 13:28 
AnswerRe: maxlength of textbox Pin
Christian Graus16-Jan-07 15:06
protectorChristian Graus16-Jan-07 15:06 
QuestionUpdating/Patching Pin
spelltwister16-Jan-07 13:27
spelltwister16-Jan-07 13:27 
QuestionWord.doc Pin
Anybloodyid16-Jan-07 11:39
Anybloodyid16-Jan-07 11:39 
AnswerRe: Word.doc Pin
shreekar16-Jan-07 17:49
shreekar16-Jan-07 17:49 
GeneralRe: Word.doc Pin
Anybloodyid16-Jan-07 23:10
Anybloodyid16-Jan-07 23:10 
GeneralRe: Word.doc Pin
shreekar16-Jan-07 23:17
shreekar16-Jan-07 23:17 
GeneralRe: Word.doc Pin
Anybloodyid17-Jan-07 3:15
Anybloodyid17-Jan-07 3:15 
QuestionPrice Break DataGrid Pin
penguin500016-Jan-07 11:38
penguin500016-Jan-07 11:38 
AnswerRe: Price Break DataGrid [modified] Pin
dptalt17-Jan-07 4:06
dptalt17-Jan-07 4:06 
QuestionPackaging problem.. dll file not found...how to add it... Pin
JustmeNick16-Jan-07 10:27
JustmeNick16-Jan-07 10:27 
AnswerRe: Packaging problem.. dll file not found...how to add it... Pin
Kschuler16-Jan-07 10:48
Kschuler16-Jan-07 10:48 
AnswerRe: Packaging problem.. dll file not found...how to add it... Pin
dptalt17-Jan-07 4:10
dptalt17-Jan-07 4:10 
GeneralRe: Packaging problem.. dll file not found...how to add it... Pin
JustmeNick17-Jan-07 4:21
JustmeNick17-Jan-07 4:21 
GeneralRe: Packaging problem.. dll file not found...how to add it... Pin
dptalt17-Jan-07 5:04
dptalt17-Jan-07 5:04 
GeneralRe: Packaging problem.. dll file not found...how to add it... Pin
JustmeNick17-Jan-07 5:23
JustmeNick17-Jan-07 5:23 

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.