Buy Questpond's video subscriptions on
huge discount
.
Online: 1851
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
C#
>
Loading ...
stracutres does not suport single inheritance ,but its suportting multiple inheritance ? [Resolved]
Posted by
Harieswer
under
C#
on 8/12/2015 |
Points: 10
| Views : 1282 | Status :
[Member]
| Replies : 1
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
structures does not support single inheritance because its value type ,but its supporting multiple inheritance by interfaces why ?
[Resolved]
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Rajnilari2015
on: 9/28/2015
[Member]
[Microsoft_MVP]
[MVP]
Platinum
|
Points: 50
0
But Structures
don't at all supports inheritance
because it is Value Type and the reason value types can't support inheritance is because of arrays. There is no indirection via a reference pointer. Objects normally live on the heap and are referenced via reference pointers, but structs are allocated on the stack (unless they are boxed) or are allocated "inside" the memory occupied by a reference type on the heap.
--
Thanks & Regards,
RNA Team
Harieswer
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...