i see that a lot but i didnt figure out yet what does that mean!
Printable View
i see that a lot but i didnt figure out yet what does that mean!
Ahh, its a simple concept! Oh, and its inheritsQuote:
Originally posted by PT Exorcist
i see that a lot but i didnt figure out yet what does that mean!
Inheritance allows you to inherit (copy) all of the properies, variables, and methods of another class into your class.
Here's an example:
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.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
ah tks
and btw i sayd that correctly..inherits
btw what a constructor is?
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.
downloaded it and hadnt the time to see it all but seems very good tks