UrbanPro

Learn Computer Software from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

If the class has access modifier with protected then the constructor of that class is public or protected?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Experienced QA Trainer

Variables, methods and constructors which are declared protected in a superclass can be accessed only by the subclasses in other package or any class within the package of the protected members' class. The protected access modifier cannot be applied to class and interfaces. Methods, fields can be...
read more
Variables, methods and constructors which are declared protected in a superclass can be accessed only by the subclasses in other package or any class within the package of the protected members' class. The protected access modifier cannot be applied to class and interfaces. Methods, fields can be declared protected, however methods and fields in a interface cannot be declared protected. Protected access gives the subclass a chance to use the helper method or variable, while preventing a nonrelated class from trying to use it. I hope this will be helpful for you! If any confusion then do let me know. read less
Comments

Oracle, Hindi, C++, C, MS Office, VBScript,JavaScript,Spoken English etc with 29 years of experience

protected
Comments

Chip Level Laptop Repairing Institute

We provide complete Laptop and Desktop Chip level Repairing training including all software installation course.
Comments

Tutor taking Computer subjects Classes

protected.
Comments

Trainer

it is default if you do not specify.the access modifier of the class and constructor are independent.
Comments

C,C++17,Data Structure, Algorithm, STL,Multithreading,Async, Assignments - Online tutor

default constructor will be public. If you are writing constructor yourself then that depends on where you are keeping the constructor.
Comments

Trainer

protected
Comments

if the class is declared protected, then the default constructor is implicitly given the access modifier protected.
Comments

Expert computer science and problem solving tutor

protected only
Comments

mca

The protected access modifier cannot be applied to class and interfaces. Methods, Members can be declared protected, however methods and members in a interface cannot be declared protected. Protected access gives the subclass a chance to use the helper method or variable, while preventing a non related...
read more
The protected access modifier cannot be applied to class and interfaces. Methods, Members can be declared protected, however methods and members in a interface cannot be declared protected. Protected access gives the subclass a chance to use the helper method or variable, while preventing a non related class from trying to use it. read less
Comments

View 17 more Answers

Related Questions

void main ( )
{
int a [4];
int *p;
P=a;
*P=10;
P++;
*P=20;
P=&a[2];
*P=30
for (int i=0; i<3; i++)
cout <<a[i] <<" , " ,

Write output

Code does not compile as there is no uppercase P declared in the code. If ignored this mistake output is 10, 20 & 30
Anya
0 0
5
Hello all, can anyone suggest me best IT course to get / available job for fresher?
Hello Priya, as per the current trend I have listed some IT courses, even these courses/ trend will rule the job market quite a good time. Mobile app development, Web programming/Application development,...
Priya
How many operating systems, I can install in my laptop?
Any number of operating system you can install with the help of Virtual desktop interface or VMware.
Thirumalai
need trainer for Rule Engine
Hi I take basics of computers. And internet basics.Also Ms office and Photoshop and Illustrator
Hari
0 0
5
Sir, which is the best software course to be learned for higher salary package and to settle well? As I am B.Tech in EEE branch I have no IT back ground. Please suggestion will be welcomed.
It would be great if you go for SAP in many courses of SAP u did not need to have IT background. And yes its a costlier course. But it will give you higher salary packages once you will clear the course....
Niranjan

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Efficient Learning Strategies
Type your notes after class Write your notes onto flashcards - Scrabble -Make posters Review flashcards while walking, at gym, etc. Dog-ear pages in the reading where you can find...

For All The New Developers
Language to use: Any language that you are learning. Interface: Web or Desktop Function: Simple calculator (9 digits + symbol) with 1 Memory storage with possible function of + - * / Error Handling...
R

Antivirus is not enough. Cyber criminals hate us. We protect from attacks that antivirus can't block. 
Engineering and internet encouraged the conception and development of network indecencies like virus, antivirus, hacking and ethical hacking. Hacking is a practice of adjustment of a computer hardware...

Graphics and Game Development
Hi there, I am sure you all would have played video games for killing time. Do you know how these are developed? I am going to introduce you to some details of the gaming industry. Gaming is a serious...

The ABCs Of Success For A Software Developer
“There is more to know for career advancement rather than focusing on codes and its challenges to become a successful developer”. A developer is the one who creates software application by...

Recommended Articles

Decades back, when computers were being introduced in office premises, PPT was a new terminology that all employees tried to learn. Now PPT has made its way far away from offices and is an integral part of schools, colleges, and several other official proceedings. This is because PPT is an user-friendly computerized method...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

MCTS Certification in India The Microsoft Certified Technology Specialist or MCTS certification is suited for professionals who want to get into profession of implementing, building, troubleshooting, and debugging a particular Microsoft technology. The MCTS certification can give you a clear edge over others to showcase...

Read full article >

Whether you are using a laptop or a desktop, the mouse surely takes up time. Imagine if you could alone manage with the keys and not have to move your hands around the mouse? That would have been faster and so much time-saving. For example, Control + Z for undo or Control + Y for redo, definitely saves time when we are...

Read full article >

Looking for Computer Software Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Computer Software Classes?

The best tutors for Computer Software Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Computer Software with the Best Tutors

The best Tutors for Computer Software Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more