Open In App

Difference between C++ and Go

Improve
Improve
Like Article
Like
Save
Share
Report

C++ was developed by Bjarne Stroustrup at Bell Labs in 1979 as an extension of the C languageC++ is a general-purpose programming language and is widely used nowadays for competitive programming. It has imperative, object-oriented, and generic programming features. C++ is a widely popular language among coders for its efficiency, high speed, and dynamic memory utilization. It runs on various platforms like Windows, Linux, Unix, Mac, etc. 

Go was designed at Google in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson to improve programming productivity in an era of multicore, networked machines, and large codebases. The designers wanted to address criticism of other languages in use at Google, It is an open-source programming language that makes it easy to build simple, reliable, and efficient software. It is often referred to as “Golang” because of its domain name, golang.org, but the proper name is Go. 

Difference between C++ and Go :

C++ GO
It is an object oriented programming language. It is a procedural programming language.
It uses true, false and bool. It has logical operators instead of Boolean.
It has support for multiple inheritance. It has no support for inheritance.
It has support for class with constructors. It has no support for class with constructors.
It has do-while and while statements. It has no do-while or while statements.
It supports function overloading. It has no support for function overloading.
It is open source project 2.0. It is licensed under the BSD license.
It support Parametric polymorphism which is checked at compile time. It does not support Polymorphism.
It is developed by  Bjarne Stroustrup It is developed by  Robert Griesemer, Rob Pike and
Ken Thompson
It is first appeared in 1985 It is first appeared in  November 10, 2009
It is only static type. It is both static and strong type.
In C++, both struct and classes are same. Go does not support these class based declarations.
It has Standard Template Library. It does not have Standard Template Library.
It supports encapsulation. It does not support encapsulation.

Last Updated : 06 Mar, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads