What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-06 04:19:01
how to create an abstract class in java
Sometimes we may come across a situation where we cannot provide implementation to all the methods in a class. We want to leave the implementation to a class that extends it. In such case we declare a class as abstract.To make a class abstract we use ke... Add solution -
Other 2021-09-03 14:25:02
What is instantiation OOP?
Instantiation means you creating an object of that class. There are some cases where you don’t want that your class’ instance will be created. Now, you may have doubt that Why do I don’t want to create an object of that class? So here... Add solution -
SQL 2021-09-03 00:43:01
[SQLITE_ERROR] SQL error or missing database (no such table: category_table)
If you just added a new table, just update your Database class (That one class extending the RoomDatabase() class) and update the entities annotation @Database(entities = [User::class, NewTableHere::class], version = 1) abstract class AppDatabase : Room... Add solution -
Other 2021-08-31 10:51:01
can a variable be declared in abstract
abstract class Parent { static void display() { System.out.println("Static method in an abstract class"); } static int x = 100; } public class Example extends Parent { publ... Add solution