What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-03-03 17:00:01
class
Class is a blueprint or template which you can create as many objects as you like. Object is a member or instance of a class. Class is declared using class keyword, Object is created through new keyword mainly. A class is a template for objects. A class ... Add solution -
Other 2022-02-05 12:35:07
why do we use Object Constructors
A constructor is a function that creates an instance of a class which is typically called an “object”. In JavaScript, a constructor gets called when you declare an object using the new keyword. The purpose of a constructor is to create ... Add solution -
Other 2022-02-05 03:35:21
class
Class is a blueprint or template which you can create as many objects as you like. Object is a member or instance of a class. Class is declared using class keyword, Object is created through new keyword mainly. A class is a template for objects. A class ... Add solution -
Java 2022-02-02 22:20:15
What is IS-A relationship in java
‘Has a ‘ relationship is also known as “composition or Aggregation”. As in inheritance we have ‘extends’ keyword we don’t have any keyword to implement ‘Has a’ relationship in java. The main advantag... Add solution -
Javascript 2022-02-01 00:07:57
javascript all type of data
/* The latest ECMAScript standard defines nine types: Six Data Types that are primitives, checked by typeof operator: undefined : typeof instance === "undefined" Boolean : typeof instance === "boolean" Number : typeof instance === &qu... Add solution -
Python 2022-01-30 01:01:48
what is a class
Class is a blueprint or template which you can create as many objects as you like. Object is a member or instance of a class. Class is declared using class keyword, Object is created through new keyword mainly. A class is a template for objects. A class ... Add solution -
Javascript 2022-01-24 02:00:56
data type javascript
/* The latest ECMAScript standard defines nine types: Six Data Types that are primitives, checked by typeof operator: undefined : typeof instance === "undefined" Boolean : typeof instance === "boolean" Number : typeof instance === &qu... Add solution -
C++ 2021-11-13 08:25:07
heap memory vs string pool
String uses a special memory location to reuse of String objects called String Constant Pool. String objects created without the use of new keyword are stored in the String Constant Pool part of the heap. It doesn't create the same string object if there ... Add solution -
Go 2021-11-07 09:28:07
new golang
// ## Go new keyword // - Go has two allocation primitives, the built-in functions new and make. // - They do different things and apply to different types, which can be confusing, but the rules are simple. // - In Go terminology, it returns a pointer to... Add solution -
C++ 2021-11-05 03:52:08
how to allocate on heap in c++
#include <iostream> #include <string> using String = std::string; class Entity { private: String m_Name; public: Entity() : m_Name("Unknown") {} Entity(const String& name) : m_Name(name) {} const String& GetName() const ... Add solution