Satya
There are no access specifiers in C. All functions and data are public.
The storage class specifiers in C and C++ are:autoexternmutableregisterstatictypedefA storage class specifier is used to refine the declaration of a variable, a function, and parameters
public private internal protected internal protected
You might be wrong: printf and scanf are usable in C++ just as in C. With format specifiers.
The access control specifiers in C++ are...public - to denote that the member is accessible from any in scope codeprivate - to denote that the member is accessible only from within the containing classprotected - the same as private, except that derived classes are includedPrivate is the default for a class type object, while public is the default for a structure type object.
No.In Java, the private access modifier restricts member access to the class in which the member is declared. But in C++, private members are also accessible to friends of the class in which they are declared. The rough equivalent in Java would be package private access.Not that Java doesn't have access specifiers, it has access modifiers. When no modifier is specified, default access is implied, which is package private for classes and public for interfaces.
Three types of access specifier private , public ,protected
No, because there is no such thing as an access specifier in Java. There are access modifiers, and security is their entire purpose, so of course you get it when you use them.
The C language does not support classes, per se, like the C++ language does. The closest the C language comes to a class is in the typdef struct... typdef struct _myClass { ... ... }; myClass; But you won't have any methods, inheritance, polymorphism, operator overloading, access specifiers, etc. like you do in C++.
The three access specifiers used in a class declaration are public, private, and protected. Public members are accessible from anywhere in the code, while private members can only be accessed within the defining class. Protected members are accessible within the class and by derived classes, but not by other classes. These specifiers help control the visibility and accessibility of class members.
Format specifier is a sequence passed the as the formatting data as by argument
class classname { public://access specifiers// { int a,b;//a and b are data members// void get() { printf("\n mouni no"); scanf("%d",&a); } void display() { printf("mouni no is",&a); } }; here void functions are methods