230 likes | 345 Views
Preparation for Entry into .NET Bridging Program. In order to be successful in this program, it is important for you to have some theoretical knowledge of many concepts in software development.
E N D
Preparation for Entry into .NET Bridging Program In order to be successful in this program, it is important for you to have some theoretical knowledge of many concepts in software development. You should have an idea of what a database is and how it stores data. You should also be able to write a simple SQL statement to retrieve data from a table. For the C# programming part of the course it is important for you to grasp the idea of Object Oriented Programming which this PowerPoint presentation addresses. It is also important for you to know the Microsoft Windows environment and be comfortable with files, folders, copying, moving and very basic knowledge of the Office products.
Object Oriented Programming using C# If you are a complete beginner to the OOP world, please review this entire slide presentation from slide number 4 onwards. You will need to run the presentation in full-screen mode (F5) in order to hear the audio. After the presentation you may follow the links given on slide #3 to view the two videos on the official Microsoft website. For those with some exposure to OOP or to C# itself, please proceed to the videos, you may skip the slides in this presentation.
Microsoft Produced Videos Please go to this url address: http://www.microsoftvirtualacademy.com/training-courses/c-fundamentals-for-absolute-beginners Start with this video (towards the middle of the page): 15 | Understanding and Creating Classes Then watch this video: 16 | More About Classes and Methods Of course you may watch as many as you like, but we will be testing specifically on 15 and 16.
First Words? Grrrrrr Ugghh Brrrrrr Arrrrrghh
Language Starts Something Thing This That
One Word Object Object Object Object
Different Words Bird Fruit Plant Rock Fish Fire
Nouns Bird Fruit Plant Rock Fish Fire
Adjectives Size Colour Height Texture Weight Temperature
Verbs Fly, eat, walk, sing Be eaten Germinate, grow, die Exert force on the earth, broken, provides shade for insects Swim, eat, sleep Provide heat, burn, start Put out
Full Sentences Bird (Eagle) Fruit (Banana) Actions - Fly ( ), Eat ( ), Walk ( ) Size – Small, Medium, Large Action - beaten ( ) Colour – Yellow
Objects with Properties and Methods Thing -> Object -> Noun -> Banana Adjective (e.g. colour)=Property=Yellow Verbs = Action = functionality (e.g. beEaten ( ))
Closer to Programming Object Functions, methods, procedures Properties, fields, variables, data
Representation A Student Object 00010100101010111011011100 Student kim = new Student ( ) ; A Student
Representation of a Student A Student Object Properties1, Properties2, Properties3 Function1, Function2, Function3 A Student
Representation using a Class class Student { string Name dateDoB float GPA Register ( ) AddCourse ( ) DropCourse ( ) Graduate ( ) A Student }
Representation in General class Student { string Name date DoB float GPA Register ( ) AddCourse ( ) DropCourse ( ) Graduate ( ) A Student }
Representation of a Student class Student { Name DoB GPA Register ( ) AddCourse ( ) DropCourse ( ) Graduate ( ) A Student }
Class becomes Object Bob class Student { Jane Name Age GPA new new new Lin Register ( ) AddCourse ( ) DropCourse ( ) Graduate ( ) new John }
Many Objects class Classroom { class Student { class Course { string RoomName intRoomNum Name Age GPA intCourseID string Name string Professor addCourseTaught ( ) removeCourseTaught ( ) Register ( ) AddCourse ( ) DropCourse ( ) Graduate ( ) assignToCurriculum ( ) removeFromCurriculum ( ) assignToRoom ( ) } } }
Relationships among Objects Course object History Student object Bob Student Object Registers ( ) for a Course Object Course Object is Assigned ( ) to a Room Object Room object K144