DO IT NOW PLZ , IT IS URGENT
12. The correct statement about class members is (). A. Instance methods can use class variables B. Instance variables can be used in class methods C. Instance methods can be called directly with class names D. Class methods can only be called with class names, not object names 13. For a three-digit positive integer n, the expression of the number on its hundred digit is (). A. n/100 B. (n-n/100*100)/10 C. n%10 D. n/100%10 14. In the following statements on construction methods, the incorrect one is (). A. Method name of construction method must be consistent with class name B. The construction method does not return a value type, it can be void type C. If you do not define any construction methods in a class, the compiler 2 automatically adds a construction method without any parameters D. Construction methods can be overloaded 15. In OOP, inheritance refers to ( ). A. Similar properties of a group of objects B. One object has the properties of another C. Common properties among objects D. The mechanism of sharing properties and operations between classes 16. Which of the following declarations of class is correct? ( ) A. abstract final class People {...} B. abstract private go(){...} C. protected private digit: D. public abstract class Bike{...} 17. In the following statements about interface, the correct one is (). A. Interface is different from the abstract class B. To implement an interface, at least one method of the interface must be implemented C. There can be no inheritance relationship between interfaces D. A class cannot implement multiple interfaces
DO IT NOW PLZ , IT IS URGENT
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am