Answers for "cpp language"

0

cpp language explained

#include <iostream>
using namespace std;
class BaseClass {
public:
   void disp(){
      cout<<"Function of Parent Class";
   }
};
class DerivedClass: public BaseClass{
public:
   void disp() {
      cout<<"Function of Child Class";
   }
};
int main() {
   /* Reference of base class pointing to
    * the object of child class.
    */
   BaseClass obj = DerivedClass(); 
   obj.disp();
   return 0;
}
Posted by: Guest on September-10-2020
0

C++ language

C++ language is a direct descendant of C programming language with 
additional features such as type checking, object oriented programming,
exception handling etc. It was developed by Bjarne Stroustrup.
Posted by: Guest on April-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language