My problem is a little strange. I have a clas let say classA. In the classA i have a method with tha name MethodA. I have anaother class called classB that derived from classA. I want to override methodA of classA, but not with the name methodA, but with a different name, let say methodB. is there any way to do this ?
Thanks in advance.
edi843
0
Newbie Poster
Recommended Answers
Jump to PostI want to override methodA of classA, but not with the name methodA, but with a different name,
So why do you need to override it :)?? method with different implementation with different name!!!
Jump to PostIt's not override at all! it's wrapping classes with different names...
public class Parent { public void Add(object o) { //some code } } public class Child : Parent { public void Aggungi(object o) { base.Add(o); } }
*seems[text]
doesn't work!
[/text]
All 8 Replies
Ramy Mahrous
401
Postaholic
Featured Poster
edi843
0
Newbie Poster
Ramy Mahrous
401
Postaholic
Featured Poster
edi843
0
Newbie Poster
edi843
0
Newbie Poster
tnind
0
Newbie Poster
Ramy Mahrous
401
Postaholic
Featured Poster
edi843
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.