In a class only declaration of the function is there but
defintion is not there then what is that function?

Answer Posted / sahasra

We can call it as the interface also in case of java,where
the interface contains only definiton where as
implementation is in other classes which are implemented
this interface

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

describe private access specifiers?

643


Show the application of a dynamic array with the help of an example.

588


Do class declarations end with a semicolon? Do class method definitions?

622


What is type of 'this' pointer? Explain when it is get created?

591


Describe new operator and delete operator?

630






Explain the different access specifiers for the class member in c++.

548


What is type of 'this' pointer?

598


What can I safely assume about the initial values of variables which are not explicitly initialized?

627


Explain the properties and principles of oop.

533


What do you mean by enumerated data type?

578


What can I use instead of namespace std?

645


Why is the function main() special?

626


What do the header files usually contains?

632


Differentiate between structure and class in c++.

602


What are the rules about using an underscore in a c++ identifier?

636