First time at GK Digital?

GK Digital is an online, collaborative learning platform built from the ground up to be a superior learning experience on the web. It is self-paced and supported by instructors and peers. GK Digital is professional training in the 21st century, from Global Knowledge.
Task: Organize your code into classes

What is OOP (Object Oriented Programming) and why do we want to do it?

As humans we use language to classify the world around us into abstract sounds and symbols. We classify things like Cats, Dogs, Apples, Students, Employees, Customers, etc. into what makes them up (properties : name, weight, etc) and what they can do (behaviors : walk, work, bark, etc).

Classes in C++ allow us to model our programs in categories of things with properties and behaviors much like we already model the world.

Traditionally with imperative languages that support subroutines, data (properties) and code (behavior) are separate, in the sense that you pass data to subroutines to operate on the data. With object oriented programming, objects manage their internal data and allow only particular operations to be performed on it. This model is closer to how our world works and can help in understanding what the software is doing.

System.InvalidOperationException: The model item passed into the dictionary is of type 'LearningLine.Interface.ICourse[]', but this dictionary requires a model item of type 'LearningLine.Mongo.Course[]'. at System.Web.Mvc.ViewDataDictionary`1.SetModel(Object value) at System.Web.Mvc.ViewDataDictionary..ctor(ViewDataDictionary dictionary) at System.Web.Mvc.WebViewPage`1.SetViewData(ViewDataDictionary viewData) at RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) at System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model) at ASP._Views_Tasks_ShowPublic_cshtml.Execute()

Preview any course on GK Digital for free.

Just choose a course from our catalog and then press preview course for free.