C++ COURSE

C++ Constructors

Learn C++ programming with EDUHUB Code Hub.

C++ Constructors

A constructor is a special function that runs automatically when an object is created.



class Student{


public:


Student(){

cout << "Created";

}


};