Computer Science, asked by tanishqa22, 6 months ago

4. What is an access specifier? Which two access specifiers is used in ac
5. Why is a class called an object factory?​

Answers

Answered by infopuneet1508
1

Answer:

5. A class is called an object factory because objects are created from a class. An object is an instance of a class. ... In class-based programming, objects are created from classes by subroutines called constructors, and destroyed by destructors.

4. This is the most common access level and whenever the public access specifier is used with an entity, that particular entity is accessible throughout from within or outside the class, within or outside the package, etc. #3) Protected: The protected access level has a scope that is within the package.

Explanation:

if is it helpful follow me

Similar questions