Object oriented programming
Download
1 / 15

Object Oriented Programming - PowerPoint PPT Presentation


  • 64 Views
  • Uploaded on

Object Oriented Programming. Dr. Ennis-Cole CECS 5100. Object Oriented Programming. Member Variables : 1.) Have Names 2.) Belong to Categories 3.) Are an implementation of a type of data. Object Oriented Programming. Member Variables : Names - m_TestEdit Categories - Value, Control

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Object Oriented Programming' - sarila


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Object oriented programming

Object Oriented Programming

Dr. Ennis-Cole

CECS 5100


Object oriented programming1

Object Oriented Programming

Member Variables:

1.) Have Names

2.) Belong to Categories

3.) Are an implementation of a type of data


Object oriented programming2

Object Oriented Programming

Member Variables:

Names - m_TestEdit

Categories - Value, Control

Variable types - Cstring, Bool, Ccalendar, int, double, float


Oop visual c

OOP - Visual C++

Check Boxes:

Visible & Enable

Control the Edit Box and the appearance of text inside it.


Oop visual c1
OOP - Visual C++

Exit Button’s Design - makes it “standout,” draws the user’s attention to the bottom of the screen, uses a new property - the modal frame



Oop visual c3
OOP - Visual C++

Numbers - + , Category: (Value, Control) Type of Data

-64.0

-50.2

-2

17

12

32.41

25.67

13.82

10

6

-8

-5

-80

11


Test of equivalency
Test of Equivalency

m_VisibleCheck = TRUE;

m_TestEdit = “This is a test !”’

if (m_EnabledCheck == TRUE) GetDlgItem (IDC_TEST_EDIT) …;


Member variables
Member Variables

  • m_

  • Saves data that the program manipulates, tests, or stores

  • What data was stored, manipulated or tested in the Day 2 exercise ?


If then else
IF-Then-Else

  • Conditional

  • Two Possible Paths

  • Used within Loop Structures

  • P. 80

  • Based Comparison Results (T/F)


Changing case
Changing CASE

CString UpperValue;

UpperValue = m_TestEdit;

UpperValue.MakeUpper( );

Variable Declaration, Assignment Statement, Function/Procedural Call to MakeUpper ( );


Active x controls
Active X Controls

  • Files with an .OCX extension

  • A Control added to the Control Tool Bar

  • Available from a third party vendor

  • Comparable to a “Plug in” added to a program

  • Usually in the c:\Windows\System directory


Active x controls1
Active X Controls

  • Procedure for Use:

    • Register the Control

    • Add the Control from the Components and Controls Submenu

  • Placing a Active X Control within a dialog box makes it visible to an end-user


Active x controls2
Active X Controls

  • Implement:

    • Multimedia Programs

    • Database Applications

    • MIDI Applications

    • Animation Programs

  • Extend the range of a VC++ Program


The end
The End

  • “That’s all folks.”


ad