Answer:
Explanation:
1. The answer is No, interface cannot have constructors. ... In order to call any method we need an object since there is no need to have object of interface, there is no need of having constructor in interface (Constructor is being called during creation of object).
2.A final class is considered complete and can not be subclassed (It's methods can not be overridden ). In case of abstract class, we have to proved implementation to abstract methods in subclasses. A final class can not have abstract methods and an abstract class can not be declared final.
3.private constructors are acceptable, however the class should be marked final instead, as doing so means the class is to be extended.
4.Yes! Abstract classes can have constructors! Yes, when we define a class to be an Abstract Class it cannot be instantiated(i.e an object cannot be created) but that does not mean an Abstract class cannot have a constructor. Each abstract class must have a concrete subclass which will implement the abstract methods of that abstract class.
Answer:
This code will no get executed properly.It will give keyerror Brianna.
Explanation:
In this dictionary we defined in the code the there is no key Brianna hence there is no corresponding value to Brianna.So assigning ages['Brianna] to value will obviously give error since there exits no key with this name.So the code will give error.
Answer: False
Explanation:
The given statement is false, as in the indirect method there is decrease in the common stock value are not be subtracted from the net income because it is not the current liability.
In the cash flow method, the cash flow from the operating activities are prepared by using two methods that are:
- Direct method
- Indirect method
The cash flow indirect method, indicate the net income figure from the given income statement. It is basically used to represent the net cash with all the necessary earnings from the actual cash received.
Answer:
Seek time measures the delay for the disk head to reach the track. A rotational delay accounts for the time to get to the right sector.
Explanation: