No announcements
Found 3965261 threads
-
4 Votes
Can we add derived class object to base class object?
May I know if we can assign derived class object to base class object in C#?Answered | 7 Replies | 11390 Views | Created by Anand K Reddy - Wednesday, September 22, 2010 6:39 AM | Last reply by Rudedog2 - Wednesday, September 22, 2010 8:12 PM -
2 Votes
derived classes ( and the base access)
You can switch back and forth with your mouse between the Console screen and Visual Studio's Debugger mode.Answered | 15 Replies | 4365 Views | Created by Mitja Bonca - Tuesday, September 29, 2009 11:52 AM | Last reply by Rudedog2 - Tuesday, September 29, 2009 8:27 PM -
1 Votes
Using base() in derived class
this refers to the current class instance and base is a keyword that allows inherited method call, i.e. it calls the specified method or property ...Answered | 5 Replies | 844 Views | Created by MarkFl - Monday, October 14, 2013 12:50 AM | Last reply by Magnus (MM8) - Monday, October 14, 2013 12:24 PM -
0 Votes
base class to derived class conversion
If you have a instance of a derived class stored as a base class variable you can cast it to a derived class.Answered | 3 Replies | 5077 Views | Created by sambit_itwm - Tuesday, January 10, 2012 7:45 PM | Last reply by Helen Zhao - Thursday, January 12, 2012 7:06 AM -
2 Votes
How to convert derived class object to base class object?
Base::SomeOverriddenFunction(); Or just call d->Base::SomeOverriddenFunction();Answered | 2 Replies | 630 Views | Created by Cenvey2 - Friday, October 23, 2015 4:13 AM | Last reply by RLWA32 - Friday, October 23, 2015 11:52 AM -
0 Votes
Can you Serialize a Derived class, cast as it's base?
In this way, you could avoid serializing derived class members, and only serialize the base class members.Answered | 2 Replies | 7030 Views | Created by s9ilent - Wednesday, August 11, 2010 1:51 AM | Last reply by Youssef Moussaoui - MSFT - Monday, August 30, 2010 9:27 PM -
0 Votes
C# base keyword vs base class object
The thing to remember is that anyone can create an instance of BaseClass, from anywhere - not just from a derived class.Answered | 5 Replies | 4009 Views | Created by recherche - Thursday, May 31, 2012 2:31 PM | Last reply by Tim Copenhaver - Thursday, May 31, 2012 4:37 PM -
0 Votes
Best Practice With Custom Classes
Hi, You can not call a PRIVATE Sub from outside of the CLASS code though.Answered | 1 Replies | 2920 Views | Created by PHE Admin - Wednesday, December 8, 2010 1:10 PM | Last reply by John Anthony Oliver - Wednesday, December 8, 2010 3:36 PM -
0 Votes
How to Explicitly Convert from Derived Class to Base Class
But I think there are "System" defined conversions, like converting from base class to derived class and vice versa.Answered | 34 Replies | 22794 Views | Created by e.s. kohen - Wednesday, March 24, 2010 4:18 AM | Last reply by e.s. kohen - Monday, March 29, 2010 10:29 PM -
0 Votes
Implementing the Extensibility.IDTExtensibility2 interface, and deriving classes from base class
i added the required references, derived from the aforementioned COMAddin, added a different RibbonX resource, set the startup project to WinWord, added the required ...Answered | 2 Replies | 4442 Views | Created by Matt Cope - Wednesday, October 3, 2012 11:34 AM | Last reply by Matt Cope - Thursday, October 4, 2012 3:33 PM -
0 Votes
C++ casting Base To Derived class
and i thought that after your comment x and y are same stack level. is it?Answered | 1 Replies | 3372 Views | Created by warchieft - Friday, December 14, 2012 8:27 AM | Last reply by Lim Bio Liong - Friday, December 14, 2012 9:34 AM -
0 Votes
How Can I Widen A Base Class Instance To A Derived Class?
What I want to do is carry forward the current base values (properties) to the derived class (DisplayIndex (which is ReadOnly), ImageIndex/Key/List, ...Answered | 4 Replies | 2832 Views | Created by grcook00 - Tuesday, September 15, 2009 7:58 PM | Last reply by grcook00 - Tuesday, September 15, 2009 9:12 PM -
0 Votes
User Controls - Best Practices
The plan is to split the datasource up once the UI gets to where the customer is happy.Answered | 2 Replies | 1636 Views | Created by westfish - Wednesday, April 4, 2012 3:01 PM | Last reply by westfish - Thursday, April 5, 2012 8:25 PM -
1 Votes
c# switch best practice?
I'm probably a bit late for this one as I guess that juffowup dont need this anymore, but for future refenrece, here is a very good solution to solve that problem: The solution is ...Answered | 6 Replies | 26964 Views | Created by juffowup - Sunday, April 16, 2006 2:45 PM | Last reply by JTango - Monday, August 25, 2008 1:34 AM -
4 Votes
Class design best practice
Conversely, "Customer" can exist independently of "Invoice" (athough an Invoice generally requires a Customer by definition), so a ...Answered | 12 Replies | 4729 Views | Created by devshed - Thursday, April 16, 2009 6:38 PM | Last reply by Galaxis - Monday, April 20, 2009 1:36 PM -
17 Votes
Base Class in C#, and Derived Class in VB.NET...
Mark the best replies as answers.Answered | 24 Replies | 5597 Views | Created by kb111 - Tuesday, July 7, 2009 1:31 PM | Last reply by Rudedog2 - Tuesday, July 7, 2009 4:52 PM -
0 Votes
Inheritance of a base class and a custom control
Hi Ross - this is a known bug on generic base classes.Answered | 3 Replies | 2105 Views | Created by RossDargan - Friday, May 11, 2012 1:28 PM | Last reply by Matt Small - Wednesday, May 16, 2012 4:27 PM -
2 Votes
why base class object cann't assign to derived class?
Hi, I am adding few points to the replies 1) Base class doesn't have any idea about its child class, the next question that ...Answered | 8 Replies | 11212 Views | Created by alavudeen batcha - Tuesday, January 10, 2012 6:46 PM | Last reply by Jeelan - Thursday, January 12, 2012 2:51 PM -
3 Votes
Best practice in lock objects in subclass
I would lock individual objects, one for the base and one for the derived.Answered | 4 Replies | 4870 Views | Created by thisissuneel - Thursday, June 7, 2012 6:05 AM | Last reply by Mansoor Omrani - Friday, June 8, 2012 9:54 AM -
0 Votes
Get derived class properties from base class contractor.
You can of course use the parameterless constructor and then set the fields of the already constructed object but you still must create the ...Answered | 4 Replies | 1220 Views | Created by Sekhar.reddy - Tuesday, May 5, 2015 10:22 AM | Last reply by Magnus (MM8) - Tuesday, May 5, 2015 11:02 AM - Items 1 to 20 of 3965261 Next ›
No announcements