Which of the following is true concerning the following statement: class Manager extends Employee
A.Manager is a concrete class and a superclass.
B.Manager is a concrete class and a subclass.
C.Manager is an abstract class and a superclass.
D.Manager is an abstract class and a subclass.
Answers
Answered by
3
Hello mate
here's your answer
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Option A✔✔
manager is a concentrate class and a super class.
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Hope it helps you
here's your answer
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Option A✔✔
manager is a concentrate class and a super class.
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Hope it helps you
Answered by
0
The correct option is (B)
Manager is a concrete class and a subclass .
EXPLANATION
- A concrete class is it is explained completely as in manager whereas abstract is the one not defined.
- Abstract method is a method that is declared but contains no implementation.
- The concrete class contains all implementations of the abstract class like a manager.
- A class defined in this way is said to be a derived (or sub) class of the parent (or base) class.
- A subclass can override any base class method.
Concrete and Abstract are opposite of each other. So let me tell you something about abstract classes so that you can easily understand Concrete Classes
Abstract classes
- Are incomplete classes and it must be sub classed in order to use
- Must be Followed by abstract keyword
- Must have at least Zero or more abstract method(Method which does not have body.
1 . abstract class Test
2. {
3. abstract void printing ( ) ;
4. }
Concrete Classes
- All the remaining classes which are not abstract are called Concrete Classes
1. class Test
2. {
3. //Method Definition
4. }
#SPJ2
Similar questions
Math,
7 months ago
Chemistry,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Physics,
1 year ago
Biology,
1 year ago