+ 1

What are the benefits of ABSTRACT and INTERFACE in Java or in other? I really do not understand

What are the benefits of ABSTRACT and INTERFACE in Java? I really do not understand

12th Dec 2020, 4:41 PM
‏‪Amir Mardani‬‏
‏‪Amir Mardani‬‏ - avatar
20 Antworten
+ 2
What is an Abstract Class in Java? An abstract class is defined as a class that’s declared with the “abstract” keyword. It is a collection of common subclass characteristics that should include at least one abstract method. An abstract class can have multiple concrete methods. Programmers using Java 8 and later can also incorporate default and static methods. An abstract class cannot be instantiated, meaning you cannot create an object with it. Programmers use abstract class vs interface Java when they need: Default functionality for subclasses Templates for future specific classes Defining a common interface for any subclasses Code reusability Before we begin with the abstract class vs interface in java difference, let us understand more about the interface in Java. What is an Interface in Java? An interface is a blueprint used to implement a class. It is a collection of abstract methods and contains no concrete methods, unlike abstract class. However, the interface offers full abstraction
14th Dec 2020, 4:12 AM
TECH WORLD
TECH WORLD - avatar
+ 1
Coder Kitten thank u very very much! but what is the object oriented design patterns ? what a bout? and where i can learn that thank u again🙏
12th Dec 2020, 7:10 PM
‏‪Amir Mardani‬‏
‏‪Amir Mardani‬‏ - avatar
+ 1
Coder Kitten Thank you very much, do I have to migrate to Kotlin for Android programming? Java does not work?
12th Dec 2020, 9:00 PM
‏‪Amir Mardani‬‏
‏‪Amir Mardani‬‏ - avatar
+ 1
Coder Kitten Thank you sir, you really helped me a lot in this way!
12th Dec 2020, 9:12 PM
‏‪Amir Mardani‬‏
‏‪Amir Mardani‬‏ - avatar
+ 1
you can start learning about design patterns on this website. https://refactoring.guru design patterns are really useful once you start designing large projects and have to structure your codebase to avoid technical debts. java is actually one of the best language to learn design patterns as it was built to be an OOP intensive language.
12th Dec 2020, 11:38 PM
Shen Bapiro
Shen Bapiro - avatar
0
Coder Kitten Wow this is a complicated topic! really thank you
12th Dec 2020, 7:36 PM
‏‪Amir Mardani‬‏
‏‪Amir Mardani‬‏ - avatar
0
Coder Kitten Excuse me, what language or topic do you think is best to learn after finishing Java if you share your experience? I'm very happy and thank you.
12th Dec 2020, 7:39 PM
‏‪Amir Mardani‬‏
‏‪Amir Mardani‬‏ - avatar
0
Excuse me, what language or topic do you think is best to learn after finishing Java if you share your experience? I'm very happy and thank you.
12th Dec 2020, 7:39 PM
‏‪Amir Mardani‬‏
‏‪Amir Mardani‬‏ - avatar
0
Coder Kitten Excuse me, I had another question, does JDBC do the same language tasks as PHP? I mean, with learning JDBC, there is no need for languages ​​like PHP? (I'm sorry if I ask too many questions)
12th Dec 2020, 9:20 PM
‏‪Amir Mardani‬‏
‏‪Amir Mardani‬‏ - avatar
0
Coder Kitten That is, with PHP, you can connect to a database or send data, and so on, and JDBC does the same thing (I mean, it can be used for database-related tasks). I think learning PHP is good for this. What is your opinion in this regard?
12th Dec 2020, 9:40 PM
‏‪Amir Mardani‬‏
‏‪Amir Mardani‬‏ - avatar
0
I always think "why use Java when have C#" just a personal view
13th Dec 2020, 6:13 AM
Kiwwi#
Kiwwi# - avatar
0
Shen Bapiro wow!that was very good websit.thank u sir
13th Dec 2020, 8:41 AM
‏‪Amir Mardani‬‏
‏‪Amir Mardani‬‏ - avatar