14.Specify the error in following program? public enum Enums { NORTH, SOUTH, WEST, EAST; private Enums() { System.out.pr
Posted: Fri May 20, 2022 11:30 am
A class in java is a blueprint (template) that consists of instance variables, instance methods, and constructors. Objects are instances/copies of a class. Therefore, which of the following statements are TRUE? i. The methods that retrieve the data of fields in the class are called accessors ii. The methods that modify the data of fields in the class are called mutators. iii. A class may be declared without constructors. iv. Name of constructor always same as name of class Oi & ii O i & ii & iii & ivv Oiii Oii