What is a constructor in OOPs?
A. A method that is used to create objects of a class
B. A method that is used to destroy objects of class
C. A method that is used to access private members of class
D. A method that is used to override the behavior of a superclass method
Answer:A
What is a constructor in OOPs?
A. A method that is used to create objects of a class B. A method that is used to destroy objects of class C. A method that is used to access private members of class D. A method that is used to override the behavior of a superclass method