C++ is not fully Object Oriented Programming language.
- C++ language suffer from criticism is that it is not fully object oriented because in C++ language we define main function outside of the class which is against the standard of an object oriented language , Which describe every member of the program should inside of the class.
- In C++ language we cannot define the main function inside the class because once it is defined in the class it becomes member of the class and member of class can be called only by using the instance so, until and unless the instance of class is created we cannot call the main function and unless the main function is called instance of the class will not be created which will not allowed to program execute at all.
So , Programming langugaes like (c#, Java etc ) kept these things in mind now we can define main function in our class.
No comments:
Post a Comment