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 ?



C++ & C# differences ?..

Answer / 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

More Dot Net General Interview Questions

Integer & struct are value types or reference types in .NET?

1 Answers  


What is portable executable (PE)?

2 Answers  


What are the different types of Classes in .NET?

0 Answers   PUCIT,


What is an EXE?

1 Answers  


What is lambda expressions in c#?

0 Answers  


How many languages .NET is supporting now?

38 Answers   Dreamtech, IBS, Microsoft, Polaris, RDT, Softcon, Viscus Infotech,


Explain how viewstate is being formed and how it's stored on client in .net?

0 Answers  


What is gac in .net?

0 Answers  


What is an Exception? How many exceptions exist in Dot net and explain them?

2 Answers   CSC, TCS,


What relationship is between a process, application domain, and application?

0 Answers  


What application do you use to install a Windows service?

1 Answers  


What is the difference between .net and laravel?

0 Answers  


Categories