Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

C++ & C# differences ?

Answer Posted / om nama shivaya

C++ and C# both are object oriented programing languages
but C++ is having one draw back that can be rectified by C#
Draw back in C++ : Multiple Inheritance
Multiple Inheritance is having lot of draw backs .
Multiple Inheritance : Derived class which may contain more
than one base class.
the Draw back is Multiple base classes which are having
same method . so Derived class will get problem while
inheriting the base class methods.
Eaxmple for Multiple Inheritance : Let us consider 4 classes
A(Base class) having Method (MethA)
-----------------------------------------
| |
B(Sub Class)(Meth1) C(Sub Class)(Meth1)
-----------------------------------------
|
D(Derived class) having method(Meth1)
So B,C,D all are having same method (Meth1) with same
signature .now the Problem with Multiple Inheritance is
Their will be clash for class D to inherite base class
method (Meth1) from B and C class.
These problem is rectified in C# by providing solution :
Derived class should not contain morethan one base class
this can be achived by Multiple Interface
Multiple Interface :A class may Inherite one base class and
it can inherit multiple interfaces .

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does u handle this COM components developed in other programming languages in .NET?

2066


What are the challenging issues you have faced in implementation project/Maintainance project in .net Functionality? How you have overcome that issue?

5053


What are three common acronyms used in .net, and what do they stand for?

956


What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?

1061


What is Entity Relationship Model in .NET?

1036


What is the use of common language runtime?

1009


What is iis? Have you used it?

965


Usually in .net, the clr takes care of memory management. Is there any need for a programmer to explicitly release memory and resources? If yes, why and how?

1047


What method do you use to explicitly kill a users session? How?

962


What is the difference between a namespace and assembly name in .net?

931


When displaying fonts, what is the difference between pixels, points and ems?

1119


What are the collections you've used?

1016


What's typical about a windows process in regards to memory allocation in .net?

1037


How many types of generations are there in a garbage collector?

905


How is threading done in .net?

950