MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/questions/SingleInheritance.cpp:45–55  ·  view source on GitHub ↗

class student { public: int data;}; // this will work but override above same class

Source from the content-addressed store, hash-verified

43// { public:
44// int data;}; // this will work but override above same class
45int main()
46{
47 student *s;
48 s=new student();
49 if(s->name.empty())
50 cout<<"Hello";
51 s->get_s();
52 s->display_s();
53 person p;
54 cout<<s->name;
55}

Callers

nothing calls this directly

Calls 2

display_sMethod · 0.80
get_sMethod · 0.45

Tested by

no test coverage detected