• edited by
3,676 views

2 Answers

1 1 vote

Ans: C

A constructor is different from normal functions in following ways:

  • Constructor has same name as the class itself
  • Constructors don’t have return type
  • A constructor is automatically called when an object is created.
  • If we do not specify a constructor, C++ compiler generates a default constructor for us (expects no parameters and has an empty body).
0 0 votes

A member function of a class is a function that has its definition or its prototype within the class definition like any other variable. It operates on any object of the class of which it is a member, and has access to all the members of a class for that object.

Member functions can be defined within the class definition or separately using scope resolution operator, ::. Defining a member function within the class definition declares the function inline, even if you do not use the inline specifier. 

Hence,Option(A)Inline Function

Answer:
Position:
Show:

Related questions

1 1 vote
1 1 answer
1.6k
1.6k views
go_editor asked Jul 13, 2016
1,603 views
Which is the method used to retrieve the current state of a check box?get State ( )put State ( )retrieve State ( )write State ( )
1 1 vote
2 answers 2 answers
3.9k
3.9k views
go_editor asked Jul 13, 2016
3,945 views
The Object Modelling Technique (OMT) uses the following three kinds of model to describe a systemClass Model , Object Model and Analysis ModelObject Model, Dynamic Model ...
2 2 votes
2 2 answers
3.1k
3.1k views
go_editor asked Jul 13, 2016
3,100 views
Which of the following operating system is better for implementing client-server network?Windows 95Windows 98Windows 2000All of these
1 1 vote
2 2 answers
3.8k
3.8k views
go_editor asked Jul 13, 2016
3,766 views
Everything below the system call interface and above the physical hardware is known asKernelBusShellStub