![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions Class is a user-defined data type in C++. It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class. Latest Answer : CLASS Specifies the criteria to handle the instance of the problem.The entire set of data and methods associated with the problem can be bound together and implemented as type with the help of class. ... Ø Public, protected and private are three access specifiers in C++. Ø Public data members and member functions are accessible Latest Answer : Private:Can be data or method membersAre accessible ONLY thru other methods of the same class where they are declaredCannot be accessed thru a class instanceWill not be inheritedPublic:Can be data or method membersAre accessible globally from any function/method ... Structure: Initially (in C) a structure was used to bundle different type of data types together to perform a particular functionality. But C++ extended the structure to contain functions also. Latest Answer : Similar to difference in default access specifier, default inheritance too is different in Class Vs Structures. ... As the name suggests, the function acts as a friend to a class. As a friend of a class, it can access its private and protected members. A friend function is not a member of the class. But it must be Latest Answer : Its the main feature of a class that private member data of a class can be accessed only by the class' member functions. But there is an exception , A class can allow non-member functions and other classes to access its own private data, by ... A virtual function allows derived classes to replace the implementation provided by the base class. The compiler makes sure the replacement is always called whenever the object in question is actually Latest Answer : A virtual function allows derived classes to replace the implementation provided by the base class. ... A scope resolution operator (::), can be used to define the member functions of a class outside the class. Latest Answer : Scope resolution:As the name itself indicates,it resolves global scope to local scopeEx:int a=10;int main(){a=20;cout Inheritance is the process of creating new classes, called derived classes, from existing classes or base classes. The derived class inherits all the capabilities of the base class, but can add embellishments Latest Answer : hi,Inheritance is the process of creating a new class called derived class from the existing class called base class. ... Tags : Inheritance "Poly" means "many" and "morph" means "form". Polymorphism is the ability of an object (or reference) to assume (be replaced by) or become many different forms Latest Answer : C++ enables polymorphism - The ability of obejcts of different classes related by inheritance respond differntly to the same function call. ... Classes and objects are separate but related concepts. Every object belongs to a class and every class contains one or more related objects. Ø A Class Latest Answer : Class is a combination of data member & member function where object is used for calling function In class we declare In object we call ... Function overloading: C++ enables several functions of the same name to be defined, as long as these functions have different sets of parameters (at least as far as their types are concerned). This Latest Answer : Here are some examples1) Function overloadingclass FuncOver {public: // Constructors can also be overloaded. FuncOver(); // Overloaded constructor. ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||