What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-09-25 02:59:06
interfaces in c++
#include <iostream> #include <string> //Pure virtual function or inteface allows us to define a function in a base class that doesn't have an implementation or definition in the base class and force sub classes to implement that function //Pu... Add solution -
TypeScript 2021-09-23 05:40:03
can interface have objects in java
No, you can never instantiate an interface in java. You can, however, refer to an object that implements an interface by the type of the interface. interface Animal{ void eat(); } You cannot do this “Animal animal = new Animal();” Bcoz in ... Add solution -
C++ 2021-09-18 14:56:02
virtual function c++
#include <iostream> #include <string> //Pure virtual function or inteface allows us to define a function in a base class that doesn't have an implementation or definition in the base class and force sub classes to implement that function //P... Add solution -
Java 2021-09-14 21:23:05
Difference between Array vs ArrayList
Arrays are fixed size ArrayList's size auotomatically adjusted Arrays can hold primitives and object ArrayList can hold only objects Arrays can be multi dimensional ArrayList cannot be multi-dimentional Array is a build in data structure ArrayList is impl... Add solution
Best helpers
Ranking is empty