| Author: Anil Rajan 02 May 2005 | Member Level: Gold | Rating:  Points: 2 |
hi
1. use sealed method sealed override public void testA() {
} 2.yes u can
interface a { void display(int x); } interface b { void display(int x); } public class Class3 : a,b { public Class3() { } <strong> void a.display(int x){} void b.display(int x){} </strong> }
5. yes
hope it helps
|
| Author: Kamliesh Nadar 02 May 2005 | Member Level: Gold | Rating:  Points: 2 |
1. If you are not declaring a method as Overridable then you can inherit the class but cannot Override that method. Following code will not compile.
Class A Public Sub F() ' since Overridable is missing Console.WriteLine("A.F") End Sub End Class
Class B Inherits A Public Overrides Sub F() Console.WriteLine("B.F") End Sub End Class
2. See the following example its self explanatory, as you need to explicitly tell which methos implemented belongs to which interface -
Public Interface IA Sub A() End Interface
Public Interface IB Sub A() End Interface
Public Interface IC Inherits IA, IB Sub C() End Interface
Class A : Implements IC Public Sub A() Implements IA.A MsgBox("IAA") End Sub Public Sub B() Implements IB.A MsgBox("IBB") End Sub Public Sub C() Implements IC.C MsgBox("ICC") End Sub Public Overridable Sub F() Console.WriteLine("A.F") End Sub End Class
3. ????
5. No you can use only one language at a time.
Regards,
|
| Author: ritesh parikh 02 May 2005 | Member Level: Silver | Rating:  Points: 2 |
4) there may be no of forms but there is only one form in aspx page where u can write <runat = "server">
|