![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2007
Posts: 1
Rep Power: 0
![]() |
I have a problem for which I dont seem to be getting a solution.
I have 3 projects namely Project A,B and C. In projectA, I have defined a public class ClassA
Public Class ClassA
Public Shared Function ClassAFunction() As String
Return "Class A"
End Function
End ClassIn ProjectB, I have inherited from the ClassA in ProjectA. Imports ProjectA
Public Class ClassB
Inherits ProjectA.ClassA
Public Shared Function ClassBFunction() As String
Return "Class B"
End Function
End ClassIn ProjectC, I have given a reference to ProjectB. I am able to access the function present in ClassB but not the functions inherited from ClassA. eg: ClassB.ClassBFunction() ----- allowed ClassB.ClassAFunction() ----- not allowed. But if I overload the ClassAFunction within ClassA, then it is accessible. eg: ClassB.ClassAFunction() ---- allowed Could anyone tell me the reason |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Feb 2006
Location: Ohio
Posts: 93
Rep Power: 3
![]() |
VB Docs read thusly:
Friend Class BaseClass
Public Sub BaseMethod()
' Add code here to define BaseMethod.
End Sub
End Class
Friend Class DerivedClass
Inherits BaseClass
' Gets BaseMethod from friendly parent
End Class
__________________
Neeley.org |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Not class inheritance | Writlaus | C++ | 3 | Sep 2nd, 2006 7:44 PM |
| Inheritance and polymorphism exercise problems, plus other questions | codylee270 | C++ | 1 | Apr 19th, 2006 10:29 PM |
| Reverse Inheritance | Darkhack | C# | 3 | Jan 16th, 2006 5:05 PM |
| Multiple inheritance | Shatai | C++ | 5 | Apr 30th, 2005 7:16 PM |
| Inheritance | PurpleMonkeyDW | Java | 1 | Jan 17th, 2005 5:38 PM |