menu
home
Home
search
Search
people
About Us
exit_to_app
Login
home
Home
search
Search
people
About Us
exit_to_app
Login
Practicing for Public Access Specifier of Object Oriented Programming
Questions 1 of 15
Q. Which among the following is true for the code given below?
class A{
int marks;
public : disp(){
cout<< marks;
}
}
class B: protected A{
char name[20];
}
A a; a.disp();
B b; b.disp();
Only object of class A can access disp() function
Only object of class B can access disp() function
Both instances can access disp() function
Accessing disp() outside class is not possible
Submit
lock
Login
person
Signup
Email
Password
Name
Email
Password
Confirm Password