What do you mean by C++ access specifiers ?
Access specifiers define how the members (attributes and methods) of a class can be accessed. ... private - members cannot be accessed (or viewed) from outside the class. protected - members cannot be accessed from outside the class, however, they can be accessed in inherited classes.
Is This Answer Correct ? | 0 Yes | 0 No |
Should you pass exceptions by value or by reference?
What is the use of main function in c++?
#include<iostream.h> void main() { class x { public: int func(int) { cout<<"cool"; return 1; } } }
write a program in c++ to implement stack using functions in header file stack.h
Is facebook written in c++?
Write a program to calculate the following i want a c++program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)
How do you declare a set in c++?
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
Can a constructor return a value?
Which software is best for coding?
Program to check whether a word is a sub-string or not of a string typed
what is the size of a class which contains no member variables but has two objects??? is it 1 or 2??