C++ Programming - OOPS Concepts - Discussion
Discussion Forum : OOPS Concepts - General Questions (Q.No. 6)
6.
Which of the following term is used for a function defined inside a class?
Discussion:
21 comments Page 1 of 3.
Sagar nale said:
2 years ago
It's a standard result. Functions derived inside the class are called member functions of the class, and the class variable declared inside the class is called as data member.
(4)
Akash said:
4 years ago
Members function are the function which is declared in the class.
Sandhya said:
9 years ago
What is member function?
Priya said:
9 years ago
What is the difference between member function and member variable?
K.Anitha said:
9 years ago
What is classic function and when it is used?
Shyam said:
9 years ago
Data member and member function will in inside a class.
Kandrasai said:
9 years ago
Generally we define a class to represent a group of objects with similar properties. Each and every object of that class is having the same properties, to explain that properties we need some variables, functions. These are called as members of the class.
So functions of a class are called as member functions, because they are intended to explain the properties of only that members which match of their type.
So functions of a class are called as member functions, because they are intended to explain the properties of only that members which match of their type.
Husna said:
1 decade ago
What is an class function?
Shaikh Moin Rukmoddin said:
1 decade ago
The class variables are called data members and the functions which are declared in the class is called member functions.
When member function is defined inside the class it is called as inline function.
Member function can also defined outside the class using class label. At this time it is not inline function.
When member function is defined inside the class it is called as inline function.
Member function can also defined outside the class using class label. At this time it is not inline function.
Rahul said:
1 decade ago
Why we can not use private to the class?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers