Created
August 31, 2018 11:19
-
-
Save dibakarsutradhar/642ad26288ce7f22166aa462f9b59d79 to your computer and use it in GitHub Desktop.
Object Example for OOP C++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class car { | |
char name[10]; | |
ind id; | |
public: | |
void getDetails(){} | |
}; | |
int main(){ | |
car ferrari; // ferrari is an object | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment