Online Test for C++
- The goal of operator overloading is __________.
To help the user of a classTo help the developer of a classTo help define friend functionNone of the above
- What is a size of empty class in c++?
4 bytes2 bytes0 bytes1 bytes
- Data members is also called?
AttributeMethodClassObject
- Which of the following is user defined data type?
PublicPrivateClassA & B Both
- Which diagram provides a formal graphic notation for modelling objects, classes and their relationships to one another?
Object DiagramAnalysis DiagramInstance DiagramClass Diagram
- ________ is a default access specifier for members of class in C++.
protectedpublicprivatedefault
- The constructor without parameter is called?
Method ConstructorDefault ConstructorOperator ConstructorFunction Constructor
- Which of the following is not a member of class?
Static functionFriend functionConst functionVirtual function
- When a method in a subclass has the same name and type signatures as a method in the superclass, then the method in the subclass _____ the method in the super class.
OverloadsFriendshipsInheritsOverrides
- Member of a class specified as _______ are accessible only to method of the class.
privatepublicprotectedderive
Also Exercise
Post Your Question
Social Sharing
Search
Articles
Recently Added Jobs
Rajasthan High Court - Jodhpur Recruitment 2017 for Civil Judges
Last Date: 21 December, 2017
Last Date: 21 December, 2017
WBSEDCL Recruitment - 2017 for Office Executive
Last Date: 16 May, 2017
Last Date: 16 May, 2017
RECRUITMENT OF PROBATIONARY OFFICERS IN STATE BANK OF INDIA
Last Date: 06 March, 2017
Last Date: 06 March, 2017
UPSC Combined Medical Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015
UPSC Engineering Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015