Professional Documents
Culture Documents
CS304 Lecture 7 Programs
CS304 Lecture 7 Programs
07 OOP Programs
#include<iostream>
#include<conio.h>
using namespace std;
class Student
{
private:
int a; // a variable only use in this class
protected:
int b; // b variable use both parent & child class
public:
int c; // c variable use any where with the help of object
};
main()
{
getch();
return 0;
}