|
-
Aug 9th, 2002, 06:26 PM
#1
Thread Starter
yay gay
what is enherits?
i see that a lot but i didnt figure out yet what does that mean!
-
Aug 9th, 2002, 09:13 PM
#2
Hyperactive Member
Re: what is enherits?
Originally posted by PT Exorcist
i see that a lot but i didnt figure out yet what does that mean!
Ahh, its a simple concept! Oh, and its inherits
Inheritance allows you to inherit (copy) all of the properies, variables, and methods of another class into your class.
Here's an example:
Code:
Public Class ParentClass
Public Sub SayHello()
Msgbox("Hello")
End Sub
End Class
Public Class ChildClass
Inherits ParentClass
Public Sub Whatever()
SayHello()
End Sub
End Class
When you create a 'ChildClass' object, and call its 'Whatever()' procedure, the 'SayHello' procedure is fired. SayHello() is part of the ChildClass object because it was inherited from ParentClass.
-
Aug 9th, 2002, 09:55 PM
#3
Thread Starter
yay gay
ah tks
and btw i sayd that correctly..inherits
-
Aug 9th, 2002, 09:56 PM
#4
Thread Starter
yay gay
btw what a constructor is?
-
Aug 9th, 2002, 10:27 PM
#5
PowerPoster
Here is a google search for you:
http://www.google.com/search?hl=en&i...-8&q=OO+VB.NET
You need to learn about Object Oriented (OO) programming to understand the questions your asking. I don't have Powerpoint installed on my computer right now, but the first link that comes up might be pretty cool.
-
Aug 9th, 2002, 10:47 PM
#6
Thread Starter
yay gay
downloaded it and hadnt the time to see it all but seems very good tks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|