Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to make a defaule conrstrocr in c++ classes

class construct
{
public:
    int a, b;
 
    // Default Constructor
    construct()
    {
        a = 10;
        b = 20;
    }
};
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #defaule #conrstrocr #classes
ADD COMMENT
Topic
Name
2+8 =