Module 13: Classes - Quiz

  • AA public method
  • BA private method
  • CAn access method
  • DA protected method
  • AIt defines a method called "new" that initializes variables x and y to default values of 10 each.
  • BIt creates a constructor named "new" with parameters _x and _y, and initializes variables x and y with the provided values.
  • CIt defines a default constructor that initializes variables x and y to the values of _x and _y.
  • DIt declares a class with default values of 10 for variables x and y, which can be accessed using the "new" method.
  • A
    internal final class +MyClassName{  }
  • B
    internal final class MyClassName{  }
  • C
    internal final class 1MyClassName{  }
  • D
    internal final class MyClassName{  }