abstract-class tag

8 questions


1 answers
175 views
0
How to Create an Interface

How do I set up a class that represents the interface?Can I just write an abstract class?


2 answers
118 views
0
Is there a time when you use Interface instead of an abstract class? And is there the opposite?

It's a general OOP question. I want to make a general comparison between Interface and the basic use of abstraction classes. I want to know the difference between using the interface and using the abs...


1 answers
130 views
0
What is the difference between an interface and an abstract class?

What is the difference between an interface and an abstract class?


1 answers
149 views
0
Can abstract classes also have constructors?

Can abstract classes also have constructors? If you can, how do you use it and why?


1 answers
156 views
0
When you want to extend another class in Fragment,

public class Main_Title_Fragment : Fragment{ ImageButton _Back_Button, _Exit_Button; TextView _Title_Text; FragmentTransaction _Main_Menu_Fragment; FragmentManager _Back_Stack; public override void On...

2 years ago

1 answers
104 views
0
Why can't you create static methods in an abstract class?

abstract class foo { abstract void bar(); // <-- Pig abstract static void bar2(); //<-- No}Why can't you define a static method for an abstract class like above?


1 answers
143 views
0
How many classes should I put in one file?

In Java, I only put one public class in one fileI don't know what to do with Python.Some modules have only one classThere's a lot on some modules.What is the standard for making a module in Python?

2 years ago

1 answers
101 views
0
Abstract Class Creator Question

In the case of an abstract class, it is not created, so we know that the subclass creates and calls the constructor of the abstract class using the super method.public class MainClass { public static ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.