Despite the fact that the class is watching troll 2 on the video wall I am going to attempt to actually do some work. One more keyword for sys prog then I must tackle data structs.
The third part of opus is done and now it is time for eoce. As usual I think I overreacted to the amount of work as the teacher seems to be very understanding and doesnt seem to expect everyone to get everything done. I think he is just looking more for progress and a willingness to learn. I can safely say that I have definitely made progress and learned a lot this semester. Sometimes I got frustrated but just about every time I asked about a topic the teacher was able to lead me to learning something new. I can also safely say I cannot wait for a break!
here is a good resource for further understanding
There are three levels of access control within a class:
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
In computer science, Big-O and Big theta is used to describe how an algorithm responds to different input sizes. This can be used to describe an algorithm's efficiency by determining processing time and working space requirements. Depending on the bounds you wish to describe will determine which notation would be used as big-o is more for just having an upper bound where big theta is upper and lower.
Identification and definition of the chosen keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
.
State the course objective; define what that objective entails.
State the method you will use for measuring successful academic/intellectual achievement of this objective.
Follow your method and obtain a measurement. Document the results here.
Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.
State the course objective; define what that objective entails.
State the method you will use for measuring successful academic/intellectual achievement of this objective.
Follow your method and obtain a measurement. Document the results here.
Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.
State the course objective; define what that objective entails.
State the method you will use for measuring successful academic/intellectual achievement of this objective.
Follow your method and obtain a measurement. Document the results here.
Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.
State the course objective; define what that objective entails.
State the method you will use for measuring successful academic/intellectual achievement of this objective.
Follow your method and obtain a measurement. Document the results here.
Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.
Can a child touch its parents private parts?
#include <iostream> using namespace std; class parent { private: int number; }; class child : private parent { public: char character; void print(); }; int main() { child notouchy; notouchy.number = 10; notouchy.print(); return 0; } void child::print() { cout<<number; }
lairstation3:~/Desktop$ g++ privateparts.cc -Wall privateparts.cc: In function ‘int main()’: privateparts.cc:8: error: ‘int parent::number’ is private privateparts.cc:23: error: within this context privateparts.cc: In member function ‘void child::print()’: privateparts.cc:8: error: ‘int parent::number’ is private privateparts.cc:32: error: within this context
#include <iostream> using namespace std; class parent { public: int number; }; class child : public parent { public: char character; void print(); }; int main() { child notouchy; notouchy.number = 10; notouchy.print(); return 0; } void child::print() { cout<<number; }
lairstation3:~/Desktop$ g++ privateparts.cc -Wall lairstation3:~/Desktop$ ./a.out 10
When declaring variables within a class do they default to private or public?
#include <iostream> using namespace std; class parent { int number; }; class child : parent { char character; void print(); }; int main() { child notouchy; notouchy.number = 10; notouchy.print(); return 0; } void child::print() { cout<<number; }
lairstation3:~/Desktop$ g++ privateparts.cc -Wall privateparts.cc: In function ‘int main()’: privateparts.cc:8: error: ‘int parent::number’ is private privateparts.cc:23: error: within this context privateparts.cc:17: error: ‘void child::print()’ is private privateparts.cc:24: error: within this context privateparts.cc: In member function ‘void child::print()’: privateparts.cc:8: error: ‘int parent::number’ is private privateparts.cc:32: error: within this context lairstation3:~/Desktop$
#include <iostream> using namespace std; class parent { Public: int number; }; class child : parent { Public: char character; void print(); }; int main() { child notouchy; notouchy.number = 10; notouchy.print(); return 0; } void child::print() { cout<<number; }
lairstation3:~/Desktop$ g++ privateparts.cc -Wall privateparts.cc: In function ‘int main()’: privateparts.cc:8: error: ‘int parent::number’ is inaccessible privateparts.cc:23: error: within this context lairstation3:~/Desktop$
#include <iostream> using namespace std; class parent { public: int number; }; class child : private parent { public: char character; void print(); }; int main() { child notouchy; notouchy.number = 10; notouchy.print(); return 0; } void child::print() { cout<<number; }
privateparts.cc: In function ‘int main()’: privateparts.cc:8: error: ‘int parent::number’ is inaccessible privateparts.cc:23: error: within this context lairstation3:~/Desktop$