9. Oop-Class A has m1 metthode Class B has m1 metthode and
C is the calss that inharits A class, A class inharits B
class. If Object dim c as new A() c.m1(), Tell me which
mettode of class will call
Answers were Sorted based on User's Feedback
Answer / taipi88
If Class A inherits from Class B, but has a own Method M1,
M1 from Class A overrides M1 of Class B.
If Class A only has a M1 Method by inheriting from Class B, B.M1 will Be
called. Class C doesn't Play any Roll in this scenario.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / amit sinha
If ClassA has m1 method, ClassB has also m1 method. ClassC
inheriting classA and ClassA inheriting ClassB then
ClassA a = new ClassC()
a.m1 will call ClassA m1 method not of ClassB. but is
ClassA don't have m1 then a.m1 will call ClassB m1 method.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I know when my thread pool work item has completed?
can aspx page contains two pager tags ?
What is the difference between primary & secondary storage device? : Dot net architecture
Define a virtual memory? : Dot net architecture
How is the using() pattern useful? What is idisposable?
Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?
Explain about generation?
Whate are resource files? How are they used in .net?
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture
How can we perform data binding in atlas?
How to improve the cache performance? : Dot net architecture
Explain the difference between l1 and l2 cache? : Dot net architecture