Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How do you know if an explicit object casting is needed?
How do you know if an explicit object casting is needed?
✍: Guest
If you assign a superclass object to a variable of a subclass's data type, you need to do explicit casting. For example:
Object a; Customer b; b = (Customer) a;
When you assign a subclass to a variable having a supeclass type, the casting is performed automatically.
2012-08-07, 2804👍, 0💬
Popular Posts:
What is AL.EXE and RESGEN.EXE? In the previous question you have seen how we can use resource files ...
What is the purpose of finalization? The purpose of finalization is to give an unreachable object th...
Regarding C Coding Given: Line in file Contents 30 int * someIDs, theFirst, *r; 110 someIDs =GetSome...
What is CodeDom? “CodeDom” is an object model which represents actually a source code. It is designe...
Which one of the following statements is TRUE in regard to overloading the ++ operator? 1 You cannot...