edited by
2,517 views

2 Answers

1 votes
1 votes

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 votes
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:

Related questions

1 votes
1 votes
1 answer
1
go_editor asked Jul 13, 2016
1,159 views
Which is the method used to retrieve the current state of a check box?get State ( )put State ( )retrieve State ( )write State ( )
2 votes
2 votes
2 answers
3
go_editor asked Jul 13, 2016
2,356 views
Which of the following operating system is better for implementing client-server network?Windows 95Windows 98Windows 2000All of these
1 votes
1 votes
2 answers
4
go_editor asked Jul 13, 2016
3,084 views
Everything below the system call interface and above the physical hardware is known asKernelBusShellStub