What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-12 21:06:02
abstraction java
bstraction: Hiding the implementation details, concentrating on essentials things, without worrying about the details ■ In java, abstraction is achieved via abstract class or interface ■ Abstraction cannot exist without inheritance 3.1. Abstract cla... Add solution -
Python 2021-09-10 16:49:02
python multiple inheritance diamond problem
# Example of multiple inheritance # I recommend to avoid it, because it's too complex to be relyed on. class Thing(object): def func(self): print("Function ran from class Thing()") class OtherThing(object): def otherfunc(self):... Add solution -
Java 2021-09-10 14:16:03
difference between interface and abstract class java
Interface 1) Interface contains only abstract methods 2) Access Specifiers for methods in interface must be public 3) Variables defined must be public , static , final 4) Multiple Inheritance in java is implemented using interface 5) To implement an int... Add solution -
PHP 2021-09-10 10:12:02
php interview questions
# 27 basics questions for php Interview 1) What is PHP? PHP is a web language based on scripts that allow developers to dynamically create generated web pages. 2) What do the initials of PHP stand for? PHP means PHP: Hypertext Preprocessor. 3) Which pr... Add solution -
Other 2021-09-10 04:04:02
is a relationship vs has a relationship
‘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 -
Python 2021-09-09 16:34:03
Python subclassing a class with custom __new__
# python messing with __new__ and __init__ # create an instance that returns itself or its subclass, or whatever # depending on whatever condition we have created class parent: def __new__(cls, *args): print('parent', i, args) # see below ... Add solution -
Java 2021-09-06 10:59:02
Abstarction
Abstraction: Hiding the implementation details, concentrating on essentials things, without worrying about the details ■ In java, abstraction is achieved via abstract class or interface ■ Abstraction cannot exist without inheritance 3.1. Abstract cl... Add solution -
Java 2021-09-05 02:58:02
is a and has 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 -
Java 2021-09-02 23:46:01
upcasting vs downcasting in java
Upcasting is casting a subtype to a supertype, going up in the inheritance tree. It is done implicitly in order to use method available on any interface/class, the object should be of same class or of class implementing the interface. WebDriver d... Add solution
Best helpers
Shaples
+5
Tranquilled
+5
Kozuch
+5
Big D Rock
+5
The 313137
+5
Toby Stewart
+5
Moez
+5
Stelle
+5
Kathrin
+5
Moradnejad
+5
Tony_Henrich
+5